mmomtchev / swig

This is SWIG JavaScript Evolution, a fork of the SWIG project with modern JavaScript/TypeScript support including WASM and async
http://www.swig.org
Other
7 stars 0 forks source link

Node-API `std::map RETURN` typemap does not compile #44

Closed mmomtchev closed 3 months ago

mmomtchev commented 3 months ago

SwigValueWrapper prevents the use of short-hand iterator notation

%typemap(out) std::map<std::string, bool> = std::map RETURN;
%inline {

std::map<std::string, bool> return_map() {
  return { {"a", true}, {"b", false} };
}