Advertisement
tinyevil

Untitled

Dec 12th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. struct ConfigKey{
  2. std::string doc;
  3. std::string key;
  4. };
  5.  
  6. std::map< ConfigKey, std::string > m = parse<>(
  7. "(
  8. (= foo opt =)
  9. foo = 1
  10.  
  11. (= bar opt =)
  12. bar = 2
  13. )";
  14.  
  15. m = { {{"foo opt", "foo"}, "1"}, {{"bar opt", "bar"}, "2"} }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement