Open jslee02 opened 4 years ago
// source.cpp namespace chimera_test { struct Dog { std::string name = "noname"; } } // chimera_test
// binding.cpp m.def_readwrite("format", &chimera_test::Dog::format)
name is not initialized with "noname".
name
"noname"
>>> d = Dog() >>> print(d.name) '' # expectation is 'noname'
name
is not initialized with"noname"
.