26 Mar
2020
26 Mar
'20
1:49 p.m.
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/601244b26aba14a2524ab1307243d0c... 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.