fork(1) download
  1. #include <iostream>
  2. #include <boost/variant.hpp>
  3.  
  4. int main() {
  5. boost::variant<std::string, void const*> foo;
  6. foo = std::string("bar");
  7. std::cout << foo.which();
  8. return 0;
  9. }
Success #stdin #stdout 0s 3232KB
stdin
Standard input is empty
stdout
Standard output is empty