-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow map
and unordered_map
with any template parameters.
#37
base: master
Are you sure you want to change the base?
Conversation
Thank you for this! When I add
|
I'll check that. |
The problem was an unrelated limitation. The code context.writeVariable("a", std::map<boost::variant<std::string, int>, int>{ /* ... */ });
context.readVariable<std::map<boost::variant<std::string, int>, int>>("a"); never works. Do you have any idea why that happens? |
In fact, the compilation error was because I forgot the Then, after fixing that, I realized that |
Hello! Assuming you still care, do you want to rebase this now that I finally merged #38? |
Hello @Habbie! |
Similar to #12, but it works for the other template parameters as well.
I also provided some test cases and did the same thing for
std::map
.