Boost logo

Boost-Build :

Subject: Re: [Boost-build] Jamfile syntax question
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-12-23 16:49:42


On 12/23/2016 10:03 AM, Robert Ramey wrote:
> <snip>
> if [ requires std_wstreambuf ] {
> <snip>
> # enable the tests which don't depend on a particular archive
> }
> Will this work as want it to?

  No. [ requires std_wstreambuf ] should be
used in target requirements. If you use
it in an if statement, it will always evaluate
as true (requires doesn't return a boolean value.
Treating the result as a boolean is syntactically
legal, but doesn't do what you want). Keep in mind,
that it's entirely possible to build with a compiler
that supports wstream and one that doesn't simultaneously.

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at