Can leave Boost modules empty to only use the plain header libraries. Closes #263.
parent
2e585856be
commit
325ed6288b
3 changed files with 30 additions and 9 deletions
@ -0,0 +1,18 @@ |
||||
#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 worls.\n"; |
||||
return 0; |
||||
} else { |
||||
std::cout << "Mathematics stopped working.\n"; |
||||
return 1; |
||||
} |
||||
} |
Loading…
Reference in new issue