{"action":"created","issue":{"url":"https://api.github.com/repos/skystrife/cpptoml/issues/39","repository_url":"https://api.github.com/repos/skystrife/cpptoml","labels_url":"https://api.github.com/repos/skystrife/cpptoml/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/skystrife/cpptoml/issues/39/comments","events_url":"https://api.github.com/repos/skystrife/cpptoml/issues/39/events","html_url":"https://github.com/skystrife/cpptoml/issues/39","id":183185324,"number":39,"title":"get_as<bool>() always returns true","user":{"login":"jhh","id":14412,"avatar_url":"https://avatars.githubusercontent.com/u/14412?v=3","gravatar_id":"","url":"https://api.github.com/users/jhh","html_url":"https://github.com/jhh","followers_url":"https://api.github.com/users/jhh/followers","following_url":"https://api.github.com/users/jhh/following{/other_user}","gists_url":"https://api.github.com/users/jhh/gists{/gist_id}","starred_url":"https://api.github.com/users/jhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhh/subscriptions","organizations_url":"https://api.github.com/users/jhh/orgs","repos_url":"https://api.github.com/users/jhh/repos","events_url":"https://api.github.com/users/jhh/events{/privacy}","received_events_url":"https://api.github.com/users/jhh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-15T03:10:15Z","updated_at":"2016-10-15T12:05:28Z","closed_at":"2016-10-15T12:05:28Z","body":"I'm wondering if I'm using this wrong. This example program:\r\n\r\n```cpp\r\n#include \"cpptoml.h\"\r\n#include <iostream>\r\n#include <strstream>\r\n\r\nint main() {\r\n  std::strstream toml;\r\n  toml << \"Int = 64\\nBool = false\";\r\n  auto parser = cpptoml::parser(toml);\r\n  auto table = parser.parse();\r\n  std::cout << *table << std::endl;\r\n  bool b = *table->get_as<bool>(\"Bool\");\r\n  std::cout << \"Bool = \" << std::boolalpha << b << \" # expect false\"\r\n            << std::endl;\r\n}\r\n```\r\n\r\noutputs the following:\r\n\r\n```\r\nBool = false\r\nInt = 64\r\n\r\nBool = true # expect false\r\n```"},"comment":{"url":"https://api.github.com/repos/skystrife/cpptoml/issues/comments/253980381","html_url":"https://github.com/skystrife/cpptoml/issues/39#issuecomment-253980381","issue_url":"https://api.github.com/repos/skystrife/cpptoml/issues/39","id":253980381,"user":{"login":"jhh","id":14412,"avatar_url":"https://avatars.githubusercontent.com/u/14412?v=3","gravatar_id":"","url":"https://api.github.com/users/jhh","html_url":"https://github.com/jhh","followers_url":"https://api.github.com/users/jhh/followers","following_url":"https://api.github.com/users/jhh/following{/other_user}","gists_url":"https://api.github.com/users/jhh/gists{/gist_id}","starred_url":"https://api.github.com/users/jhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhh/subscriptions","organizations_url":"https://api.github.com/users/jhh/orgs","repos_url":"https://api.github.com/users/jhh/repos","events_url":"https://api.github.com/users/jhh/events{/privacy}","received_events_url":"https://api.github.com/users/jhh/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T12:05:28Z","updated_at":"2016-10-15T12:05:28Z","body":"Everything works on my end. Thanks very much for the assistance!"}}
{"actor":{"display_login":"jhh"}}