Fix 'occurred' typo
[libt2n] / examples / minimalistic-client-stub.cpp
index b12b642..338667d 100644 (file)
@@ -14,6 +14,7 @@ std::string cmd_group_example_client::testfunc(const std::string& str)
 
     testfunc_res* res=dynamic_cast<testfunc_res*>(rc.get_result());
     if (!res)
+      // TODO: another exception and details
       throw libt2n::t2n_communication_error("result object of wrong type");
     return res->get_data();
 }
@@ -21,4 +22,4 @@ std::string cmd_group_example_client::testfunc(const std::string& str)
 // include in this compilation unit to ensure the compilation unit is used
 // see also:
 // http://www.google.de/search?q=g%2B%2B+static+initializer+in+static+library
-#include "minimalistic-stub.cpp"
+#include "minimalistic-stub-once.hxx"