Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does boost::container support C++11 initializer lists?

At the Boost.Container website we can read this:

Boost.Container does not support initializer lists when constructing or assigning containers but it will support it for compilers with initialized-list support. (...)

Excuse me if I'm just dumb, but I don't really know how to read it. Does it mean that it will do that in unpredicted future, or should it work with conforming compilers right now?

I've tested it on GCC 4.7 and ICC 13.0, neither works, but I believe I could've missed something pretty important, like proper preprocessor definition?

like image 301
Bartek Banachewicz Avatar asked Jan 15 '23 07:01

Bartek Banachewicz


1 Answers

Boost.Container from v1.52 currently doesn't have any initializer_list constructors. Unfortunately the only source I can give you is the fact I manually searched through the entire containers library source.

like image 178
Rapptz Avatar answered Jan 24 '23 12:01

Rapptz