summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/1 boost/nomod.cpp
blob: 55c95b25c9263f8bc03eed10d721ef2bedd1bf7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 world.\n";
        return 0;
    } else {
        std::cout << "Mathematics stopped working.\n";
        return 1;
    }
}