fork download
  1. #include <iostream>
  2. using namespace std;
  3. #include <boost/variant.hpp>
  4. #include <vector>
  5.  
  6. struct Option{
  7. string Name;
  8. boost::variant< int, std::string, bool > Value;
  9. Option(std::string N,boost::variant< int, std::string, bool > V): Name(N), Value(V){}
  10. };
  11.  
  12.  
  13.  
  14. int main() {
  15. vector <Option> Settings;
  16. Settings.push_back(Option("PierwszeUstawienie", true));
  17. Settings.push_back(Option("InneUstawienie", 22));;
  18. return 0;
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:29: fatal error: boost/variant.hpp: No such file or directory
 #include <boost/variant.hpp>
                             ^
compilation terminated.
stdout
Standard output is empty