The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
400 B
19 lines
400 B
5 years ago
|
#include<boost/any.hpp>
|
||
|
#include<iostream>
|
||
|
|
||
|
boost::any get_any() {
|
||
|
boost::any foobar = 3;
|
||
|
return foobar;
|
||
|
}
|
||
|
|
||
|
int main(int argc, char **argv) {
|
||
|
boost::any result = get_any();
|
||
|
if(boost::any_cast<int>(result) == 3) {
|
||
|
std::cout << "Everything is fine in the world.\n";
|
||
|
return 0;
|
||
|
} else {
|
||
|
std::cout << "Mathematics stopped working.\n";
|
||
|
return 1;
|
||
|
}
|
||
|
}
|