Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2020-03-26 13:49:22


Alexander Grund wrote:

> The feature I require does not yet exist. I need movable std streams which
> MSVC supports since 2015 but 2013 does support most (many) C++11 features
> already. So checking other features is not reliable. I don't know enough
> about B2 to implement such thing myself.

You can look at

https://github.com/boostorg/iostreams/commit/601244b26aba14a2524ab1307243d0c5ea566206

as an example of writing such a custom check. Basically, you write a source
file that compiles when the feature you want is available, then use
check-target-builds to add a conditional requirement.


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