{"action":"closed","issue":{"url":"https://api.github.com/repos/livenet123/Newton/issues/1","repository_url":"https://api.github.com/repos/livenet123/Newton","labels_url":"https://api.github.com/repos/livenet123/Newton/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/livenet123/Newton/issues/1/comments","events_url":"https://api.github.com/repos/livenet123/Newton/issues/1/events","html_url":"https://github.com/livenet123/Newton/issues/1","id":312297822,"number":1,"title":"problem with compilation","user":{"login":"cryptomaxsun","id":23011564,"avatar_url":"https://avatars1.githubusercontent.com/u/23011564?v=4","gravatar_id":"","url":"https://api.github.com/users/cryptomaxsun","html_url":"https://github.com/cryptomaxsun","followers_url":"https://api.github.com/users/cryptomaxsun/followers","following_url":"https://api.github.com/users/cryptomaxsun/following{/other_user}","gists_url":"https://api.github.com/users/cryptomaxsun/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptomaxsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptomaxsun/subscriptions","organizations_url":"https://api.github.com/users/cryptomaxsun/orgs","repos_url":"https://api.github.com/users/cryptomaxsun/repos","events_url":"https://api.github.com/users/cryptomaxsun/events{/privacy}","received_events_url":"https://api.github.com/users/cryptomaxsun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-08T11:31:08Z","updated_at":"2018-04-09T03:28:58Z","closed_at":"2018-04-09T03:28:58Z","author_association":"NONE","body":"Hello!\r\nI'm doing a daemon compilation for the pool, an error, how do I fix it?\r\n```\r\n[ 43%] Building CXX object src/CMakeFiles/P2P.dir/P2p/P2pContextOwner.cpp.o\r\nLinking CXX static library libP2P.a\r\nmake[3]: Leaving directory `/home/max/Newton/build/release'\r\n[ 43%] Built target P2P\r\nmake[3]: Entering directory `/home/max/Newton/build/release'\r\nScanning dependencies of target Rpc\r\nmake[3]: Leaving directory `/home/max/Newton/build/release'\r\nmake[3]: Entering directory `/home/max/Newton/build/release'\r\n[ 43%] Building CXX object src/CMakeFiles/Rpc.dir/Rpc/RpcServer.cpp.o\r\nIn file included from /home/max/Newton/src/Rpc/RpcServer.cpp:18:0:\r\n/home/max/Newton/src/Rpc/RpcServer.h:41:15: error: ‘__cxx11’ is not a member of ‘std’\r\n   std::vector<std::__cxx11::string> getCorsDomains();\r\n               ^\r\n/home/max/Newton/src/Rpc/RpcServer.h:41:15: error: ‘__cxx11’ is not a member of ‘std’\r\n/home/max/Newton/src/Rpc/RpcServer.h:41:35: error: template argument 1 is invalid\r\n   std::vector<std::__cxx11::string> getCorsDomains();\r\n                                   ^\r\n/home/max/Newton/src/Rpc/RpcServer.h:41:35: error: template argument 2 is invalid\r\n/home/max/Newton/src/Rpc/RpcServer.cpp: In lambda function:\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53: error: no matching function for call to ‘begin(int&)’\r\n  for (const auto& cors_domain : obj->getCorsDomains()) {\r\n                 from /home/max/Newton/src/Rpc/RpcServer.h:18,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.cpp:18:\r\n/usr/include/c++/4.8/bits/range_access.h:58:5: note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)\r\n     begin(const _Container& __cont) -> decltype(__cont.begin())\r\n     ^\r\n/usr/include/c++/4.8/bits/range_access.h:58:5: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.8/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.begin()) std::begin(const _Container&) [with _Container = int]’:/home/max/Newton/src/Rpc/RpcServer.cpp:100:53:   required from here\r\n/usr/include/c++/4.8/bits/range_access.h:58:5: error: request for member ‘begin’ in ‘__cont’, which is of non-class type ‘const int’\r\n/usr/include/c++/4.8/bits/range_access.h:48:5: note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)\r\n     begin(_Container& __cont) -> decltype(__cont.begin())     ^\r\n/usr/include/c++/4.8/bits/range_access.h:48:5: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.8/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.begin()) std::begin(_Container&) [with _Container = int]’: \r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53:   required from here\r\n/usr/include/c++/4.8/bits/range_access.h:48:5: error: request for member ‘begin’ in ‘__cont’, which is of non-class type ‘int’\r\nIn file included from /usr/include/c++/4.8/utility:74:0,\r\n                 from /usr/include/c++/4.8/unordered_set:38,\r\n                 from /home/max/Newton/src/Rpc/HttpServer.h:20,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.h:18,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.cpp:18:\r\n/usr/include/c++/4.8/initializer_list:89:5: note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)\r\n     begin(initializer_list<_Tp> __ils) noexcept\r\n     ^\r\n/usr/include/c++/4.8/initializer_list:89:5: note:   template argument deduction/substitution failed:\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53: note:   mismatched types ‘std::initializer_list<_Tp>’ and ‘int’\r\n  for (const auto& cors_domain : obj->getCorsDomains()) {\r\n                                                     ^\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53: error: no matching function for call to ‘end(int&)’\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53: note: candidates are:\r\nIn file included from /usr/include/c++/4.8/string:51:0,\r\n                 from /usr/include/c++/4.8/stdexcept:39,\r\n                 from /usr/include/c++/4.8/array:38,\r\n                 from /usr/include/c++/4.8/tuple:39,\r\n                 from /usr/include/c++/4.8/unordered_set:41,\r\n                 from /home/max/Newton/src/Rpc/HttpServer.h:20,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.h:18,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.cpp:18:\r\n/usr/include/c++/4.8/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])\r\n     end(_Tp (&__arr)[_Nm])\r\n     ^\r\n/usr/include/c++/4.8/bits/range_access.h:97:5: note:   template argument deduction/substitution failed:\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53: note:   mismatched types ‘_Tp [_Nm]’ and ‘int’\r\n  for (const auto& cors_domain : obj->getCorsDomains()) {\r\n                                                     ^\r\nIn file included from /usr/include/c++/4.8/string:51:0,\r\n                 from /usr/include/c++/4.8/stdexcept:39,\r\n                 from /usr/include/c++/4.8/array:38,\r\n                 from /usr/include/c++/4.8/tuple:39,\r\n                 from /usr/include/c++/4.8/unordered_set:41,\r\n                 from /home/max/Newton/src/Rpc/HttpServer.h:20,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.h:18,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.cpp:18:\r\n/usr/include/c++/4.8/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)\r\n     end(const _Container& __cont) -> decltype(__cont.end())\r\n     ^\r\n/usr/include/c++/4.8/bits/range_access.h:78:5: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.8/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(const _Container&) [with _Container = int]’:\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53:   required from here\r\n/usr/include/c++/4.8/bits/range_access.h:78:5: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘const int’\r\n/usr/include/c++/4.8/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)\r\n     end(_Container& __cont) -> decltype(__cont.end())\r\n     ^\r\n/usr/include/c++/4.8/bits/range_access.h:68:5: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.8/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(_Container&) [with _Container = int]’:\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53:   required from here\r\n/usr/include/c++/4.8/bits/range_access.h:68:5: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘int’\r\nIn file included from /usr/include/c++/4.8/utility:74:0,\r\n                 from /usr/include/c++/4.8/unordered_set:38,\r\n                 from /home/max/Newton/src/Rpc/HttpServer.h:20,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.h:18,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.cpp:18:\r\n/usr/include/c++/4.8/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)\r\n     end(initializer_list<_Tp> __ils) noexcept\r\n     ^\r\n/usr/include/c++/4.8/initializer_list:99:5: note:   template argument deduction/s/home/max/Newton/src/Rpc/RpcServer.cpp:100:53: note:   mismatched types ‘_Tp [_Nm]’ and ‘int’\r\n  for (const auto& cors_domain : obj->getCorsDomains()) {                                                     ^\r\nIn file included from /usr/include/c++/4.8/string:51:0,\r\n                 from /usr/include/c++/4.8/stdexcept:39,\r\n                 from /usr/include/c++/4.8/array:38,\r\n                 from /usr/include/c++/4.8/tuple:39,                 from /usr/include/c++/4.8/unordered_set:41,                 from /home/max/Newton/src/Rpc/HttpServer.h:20,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.h:18,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.cpp:18:\r\n/usr/include/c++/4.8/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)\r\n     end(const _Container& __cont) -> decltype(__cont.end())     ^\r\n/usr/include/c++/4.8/bits/range_access.h:78:5: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.8/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(const _Container&) [with _Container = int]’:\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53:   required from here\r\n/usr/include/c++/4.8/bits/range_access.h:78:5: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘const int’\r\n/usr/include/c++/4.8/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)\r\n     end(_Container& __cont) -> decltype(__cont.end())\r\n     ^\r\n/usr/include/c++/4.8/bits/range_access.h:68:5: note:   template argument deduction/substitution failed:\r\n/usr/include/c++/4.8/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(_Container&) [with _Container = int]’:\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53:   required from here/usr/include/c++/4.8/bits/range_access.h:68:5: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘int’\r\nIn file included from /usr/include/c++/4.8/utility:74:0,\r\n                 from /usr/include/c++/4.8/unordered_set:38,\r\n                 from /home/max/Newton/src/Rpc/HttpServer.h:20,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.h:18,\r\n                 from /home/max/Newton/src/Rpc/RpcServer.cpp:18:\r\n/usr/include/c++/4.8/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)\r\n     end(initializer_list<_Tp> __ils) noexcept\r\n     ^\r\n/usr/include/c++/4.8/initializer_list:99:5: note:   template argument deduction/substitution failed:\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:100:53: note:   mismatched types ‘std::initializer_list<_Tp>’ and ‘int’\r\n  for (const auto& cors_domain : obj->getCorsDomains()) {\r\n                                                     ^\r\n/home/max/Newton/src/Rpc/RpcServer.cpp: At global scope:\r\n/home/max/Newton/src/Rpc/RpcServer.cpp:227:26: error: prototype for ‘std::vector<std::basic_string<char> > CryptoNote::RpcServer::getCorsDomains()’ does not match any in class ‘CryptoNote::RpcServer’\r\n std::vector<std::string> RpcServer::getCorsDomains() {\r\n                          ^\r\nIn file included from /home/max/Newton/src/Rpc/RpcServer.cpp:18:0:\r\n/home/max/Newton/src/Rpc/RpcServer.h:41:37: error: candidate is: int CryptoNote::RpcServer::getCorsDomains()\r\n   std::vector<std::__cxx11::string> getCorsDomains();\r\n                                     ^\r\nmake[3]: *** [src/CMakeFiles/Rpc.dir/Rpc/RpcServer.cpp.o] Error 1\r\nmake[3]: Leaving directory `/home/max/Newton/build/release'\r\nmake[2]: *** [src/CMakeFiles/Rpc.dir/all] Error 2\r\nmake[2]: Leaving directory `/home/max/Newton/build/release'\r\nmake[1]: *** [all] Error 2\r\nmake[1]: Leaving directory `/home/max/Newton/build/release'\r\nmake: *** [build-release] Error 2\r\n```"}}
{"actor":{"display_login":"livenet123"}}