Boost logo

Boost-Build :

From: Ilya Sokolov (fal_delivery_at_[hidden])
Date: 2008-07-30 08:01:56


Markus Schöpflin wrote:
> Ilya Sokolov wrote:
>
> [...]
>
>> Why not use <cxxflags> instead of <c++-template-depth> as the value is
>> toolset-dependent anyway?
>
> Are you questioning the wisdom of the existence of the
> <c++-template-depth> feature itself?
>
> A real big advantage is that its existence allows to write
>
> foo.cxx : : : <c++-template-depth>bar ;

No, template-depth is an internal constant of the compiler, so most
probably its value will be different on each of them, i.e.

<toolset>gcc:<c++-template-depth>bar-1
<toolset>qcc:<c++-template-depth>bar-2
<toolset>cxx:<c++-template-depth>bar-3
<toolset>acc:<c++-template-depth>bar-4

> instead of
>
> foo.cxx : : : <toolset>gcc:<cxxflags>-ftemplate-depth-bar
> <toolset>qcc:<cxxflags>-ftemplate-depth-bar
> <toolset>cxx:<cxxflags>"-pending_instantiations bar"
> <toolset>acc:<cxxflags>"whatever"
> ... ;

Should be:

<toolset>gcc:<cxxflags>-ftemplate-depth-bar-1
<toolset>qcc:<cxxflags>-ftemplate-depth-bar-2
<toolset>cxx:<cxxflags>"-pending_instantiations bar-3"
<toolset>acc:<cxxflags>"whatever"

> Markus
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk