I use C ++ 11, but also some libraries that are not configured for it, and need some type conversion. In particular, I need a way to convert std::__cxx11::string to a regular std::string , but googling. I cannot find a way to do this, and setting (string) in front does not work.
If I do not convert, I get linker errors like this:
undefined reference to `H5::CompType::insertMember(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, H5::DataType const&) const'
c ++ string casting types c ++ 11 std
jorgen Oct 28 '15 at 15:19 2015-10-28 15:19
source share