Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 24th, 2011  |  syntax: None  |  size: 0.20 KB  |  views: 68  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <string>
  2. #include <iostream>
  3. #include <boost/variant.hpp>
  4.  
  5. int main (int argc, char** argv)
  6. {
  7.         boost::variant<int, std::string, std::wstring> v;
  8.         v = 3;
  9.         std::wcout << v;
  10.         return 0;
  11. }
clone this paste RAW Paste Data