#include #include #include #include #include #include "Mesh.hpp" #include "IR.hpp" #include "TypeInfo.hpp" int main() { // don't skip the whitespace while reading std::cin >> std::noskipws; // use stream iterators to copy the stream to a string std::istream_iterator it(std::cin); std::istream_iterator end; std::string results(it, end); try { json jobjIn = json::parse(results); std::shared_ptr b = fromJSON(W>(),jobjIn); std::shared_ptr tv = std::static_pointer_cast(b); json jobjOut = toJSON(b); std::cout << jobjOut; } catch (std::string e) { std::cout << "exception: " << e << "\n"; } catch (...) { std::cout << "default exception\n"; } return 0; }