简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM