nomod.cpp 400 B

12345678910111213141516171819
  1. #include<boost/any.hpp>
  2. #include<iostream>
  3. boost::any get_any() {
  4. boost::any foobar = 3;
  5. return foobar;
  6. }
  7. int main(int argc, char **argv) {
  8. boost::any result = get_any();
  9. if(boost::any_cast<int>(result) == 3) {
  10. std::cout << "Everything is fine in the world.\n";
  11. return 0;
  12. } else {
  13. std::cout << "Mathematics stopped working.\n";
  14. return 1;
  15. }
  16. }