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;
// 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;