I'm trying out the new c++ interoperability, but having trouble working with a c++ function that returns an std::string, is that possible? A function that returns an int is fine but as soon as I try to include in the header of a c++ file I get an error saying the file is not found.
For example this function I cannot get to work in swift:
std::string test() {
return "test";
}
My header file would look like:
#include <string>
std::string test();
I am using the latest beta of xcode with the -cxx-interoperability-mode=default flag.