简体   繁体   中英

Is boost optimized to use variadic templates from C++11?

I can not find information on (1) whether Boost is already available in a version using variadic templates from C++11 instead of using MPL and (2) what kind of compile time reduction one might expect when making "typical" use of common Boost idioms (ptr, tuple, pair, mutex, etc.) on common platforms (MSVC 2013, clang, gcc). Thanks!

(Boost) Hana seems to be that initiative. Many sub-libraries opted to do their "next" versions c++11 only (Spirit, Fusion, Proto-0x and others?).

So there's a movement away from MPL if you will. I don't think MPL will be "replaced" in the near future. It does seem more likely that something like Hana would replace MPL for libraries that opt-out of c++03 support.

The compile time reductions are considerable. Eg http://boost-spirit.com/home/2013/02/23/spirit-x3-on-github/ sees considerable speed ups. You can find some ad-hoc compile-time comparisons on the [spirit-general] mailing list, if I remember correctly.

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