Boost logo

Boost :

Subject: [boost] boost::variant -- this code compiles fine -- I think it should not compile
From: Peter Foelsche (peter_foelsche_at_[hidden])
Date: 2009-09-24 18:41:30


#include <boost/variant.hpp>

struct test
{
};

int main(int argc, char **argv)
{ boost::variant<std::string, int, double> s;

 boost::get<test>(s);

 return 0;
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk