Boost logo

Boost :

From: Simon Atanasyan (atanasyan_at_[hidden])
Date: 2007-09-28 13:23:53


The short answer is very simple. By default Sun C++ compiler does not
allow to refer static symbols from templates. -features=tmplrefstatic
turns on this ability.

2007/9/28, Sid Sacek <ssacek_at_[hidden]>:
>
> To whom it may concern,
>
> When compiling Boost code using the Sun compiler, the Boost documentation
> makes this statement.
>
> Quote:
> When using this compiler on complex C++ code, such as the Boost C++ library,
> it is recommended to specify the following options when intializing the sun
> module:
> -library=stlport4 -features=tmplife -features=tmplrefstatic
> End-Quote:
>
>
> I don't understand the effect of the 'tmplrefstatic' argument on the
> compiled code. Why is that option recommended, ie. What does it do?
>
> I searched the web for a couple of hours for an explanation and couldn't
> find an answer to my question. I'm hoping somebody on this list knows
> because Boost is recommending it.
>
> Thanks in advance,
> -Sid Sacek

-- 
Simon Atanasyan

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk