As I see many std classes from c++11
take their origin from boost
library. So boost library has array, mutex, shared_ptr, unique_ptr, function etc, and std analogs with almost the same interface and semantics. And I wonder, why not to have build mode for boost,
where I can add compiler flag like -DUSE_CXX11_CLASSES
,
and boost low level stuff become just typedef
to std
one?
So, for example, if I use boost:program_options
and c++11
,
I don't have in my program many duplicates.
I mean, yes it is good to have boost low level classes, for compilers that not support c++11
, but why not, for compilers, which support c++11
use already available stuff?