However you want to define "worst" -- be it "longest", "most unintelligible",
"most unhelpful" whatever.
For me, this little test program here:
1 2 3 4 5 6 7 8 9 10 11
|
#include <boost/mpl/set.hpp>
#include <boost/variant/variant.hpp>
#include <string>
int main() {
typedef boost::mpl::set< int, std::string > MySet;
typedef boost::make_variant_over<MySet>::type MyVariantSet;
MyVariantSet s;
s = 3;
}
|
consisting of exactly 255 characters, generates a whopping
46K
(as reported by wc -c) of compile errors (64 lines of output, 3805 words,
46468 characters), all because apparently I cannot make a boost::variant
out of a boost::mpl::set (but I can out of a boost::mpl::vector).
(The only text in the output that even refers to my code is a couple
of instances of "t.cpp:9: instantiated from here").
EDIT: Incidentally, change the boost::mpl::set to boost::mpl::vector,
and include vector.hpp instead of set.hpp and it compiles without error.