{"action":"closed","issue":{"url":"https://api.github.com/repos/jtv/libpqxx/issues/73","repository_url":"https://api.github.com/repos/jtv/libpqxx","labels_url":"https://api.github.com/repos/jtv/libpqxx/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/jtv/libpqxx/issues/73/comments","events_url":"https://api.github.com/repos/jtv/libpqxx/issues/73/events","html_url":"https://github.com/jtv/libpqxx/issues/73","id":305089785,"number":73,"title":"Compilation error when including notification.hxx","user":{"login":"maresc-g","id":4205075,"avatar_url":"https://avatars0.githubusercontent.com/u/4205075?v=4","gravatar_id":"","url":"https://api.github.com/users/maresc-g","html_url":"https://github.com/maresc-g","followers_url":"https://api.github.com/users/maresc-g/followers","following_url":"https://api.github.com/users/maresc-g/following{/other_user}","gists_url":"https://api.github.com/users/maresc-g/gists{/gist_id}","starred_url":"https://api.github.com/users/maresc-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maresc-g/subscriptions","organizations_url":"https://api.github.com/users/maresc-g/orgs","repos_url":"https://api.github.com/users/maresc-g/repos","events_url":"https://api.github.com/users/maresc-g/events{/privacy}","received_events_url":"https://api.github.com/users/maresc-g/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-14T09:55:35Z","updated_at":"2018-03-14T22:18:38Z","closed_at":"2018-03-14T22:18:38Z","author_association":"NONE","body":"Hello,\r\n\r\nI downloaded the version 6.1 to see if I could upgrade our current version of pqxx but I get this compilation error when including pqxx/notification.hxx.\r\n\r\n```\r\nIn file included from /opt/pqxx/include/pqxx/notification.hxx:19:0,\r\n                 from /opt/pqxx/include/pqxx/notification:12,\r\n                 from DbTriggerListener.h:6,\r\n                 from DbTriggerListener.cpp:1:\r\n/opt/pqxx/include/pqxx/types.hxx:28:25: error: ‘size_t’ does not name a type\r\n using field_size_type = size_t;\r\n                         ^\r\nIn file included from /opt/pqxx/include/pqxx/notification:12:0,\r\n                 from DbTriggerListener.h:6,\r\n                 from DbTriggerListener.cpp:1:\r\n/opt/pqxx/include/pqxx/notification.hxx:60:56: error: ‘string’ in namespace ‘std’ does not name a type\r\n   notification_receiver(connection_base &c, const std::string &channel);\r\n                                                        ^\r\n/opt/pqxx/include/pqxx/notification.hxx:66:14: error: ‘string’ in namespace ‘std’ does not name a type\r\n   const std::string &channel() const { return m_channel; }\r\n              ^\r\n/opt/pqxx/include/pqxx/notification.hxx:76:38: error: ‘string’ in namespace ‘std’ does not name a type\r\n   virtual void operator()(const std::string &payload, int backend_pid) =0;\r\n                                      ^\r\n/opt/pqxx/include/pqxx/notification.hxx:83:8: error: ‘string’ in namespace ‘std’ does not name a type\r\n   std::string m_channel;\r\n```\r\nThis happens if you include only pqxx/notification.hxx, if you include pqxx/pqxx or string and cstddef before pqxx/notifications.hxx, it compiles without problem."}}
{"actor":{"display_login":"jtv"}}