]> git.meshlink.io Git - meshlink/commitdiff
es compiliert, aber failed immernoch. :-( was ist da los???
authorLars <lars.rohwedder@everbase.net>
Sun, 3 Aug 2014 23:31:42 +0000 (01:31 +0200)
committerLars <lars.rohwedder@everbase.net>
Sun, 3 Aug 2014 23:31:42 +0000 (01:31 +0200)
test/basicpp.cpp

index d82610e3e5ce151f9dca14634200d3bf4b8d4db9..3b8b77f790e10e9ca10545f7e985cdc9c578dfab 100644 (file)
@@ -8,7 +8,7 @@ using namespace std;
 int main(int argc, char *argv[]) {
        // Open a new meshlink instance.
 
-       meshlink::mesh *mesh = meshlink::open("basicpp_conf", "foo");
+       meshlink::mesh *mesh = meshlink::open<meshlink::mesh>("basicpp_conf", "foo");
        if(!mesh) {
                cerr << "Could not initialize configuration for foo\n";
                return 1;
@@ -48,7 +48,7 @@ int main(int argc, char *argv[]) {
 
        // Check that the name is ignored now, and that we still are "foo".
 
-       mesh = meshlink::open("basic_conf", "bar");
+       mesh = meshlink::open<meshlink::mesh>("basic_conf", "bar");
        if(!mesh) {
                cerr << "Could not open configuration for foo a second time\n";
                return 1;