[OpenIndiana-discuss] SunStudio

Emanuele Pucciarelli ep at acm.org
Wed Nov 17 18:17:48 UTC 2010


Hi,

> The following code snipped from /usr/include/sigc++-2.0/sigc++/signal.h
> shows how the two compilers handle things:

[...]

Sun Studio may very well have bugs, but I have a hunch that this one
isn't really a bug: it just depends on what STL implementation you are
using. If I am not mistaken, the code that you mention has a
workaround for the libCstd implementation, which was developed for Sun
Studio 5.0, was incomplete and was never removed in order to guarantee
binary compatibility.

Look at

http://developers.sun.com/sunstudio/documentation/ss12u1/mr/READMEs/c++_faq.html#LibComp5

(D.3 and D.4) for an explanation and advice on how to enable proper
STL support, and at

https://svn.boost.org/trac/boost/ticket/3893

for another example of a workaround with a somewhat clearer explanation.

I had similar problems when I ported rtorrent.

Bye!

-- 
Emanuele



More information about the OpenIndiana-discuss mailing list