w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Nesting boost variant types to increase the type limit?

It's an ugly hack. It will make your visitors or your get calls extremely ugly and unreadable.

Try just increasing the limit instead - Boost.Variant defines it to be the same as BOOST_MPL_LIMIT_LIST_SIZE, which you can override if you disable the pre-generated headers (which is a hit in compile time, though).


Why do you need this crazy amount of different types anyway? This sounds like a potential design issue.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.