Error compile latest version from git.
Ubuntu 14.04
uname -a:
Linux oneevil.ru 3.13.0-30-generic #54-Ubuntu SMP Mon Jun 9 22:45:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[ 41%] Building CXX object src/CMakeFiles/node_rpc_proxy.dir/node_rpc_proxy/NodeRpcProxy.cpp.o
In file included from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.h:12:0,
from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.cpp:5:
/root/bytecoin/src/common/ObserverManager.h: In instantiation of ‘bool tools::ObserverManager::add(T*) [with T = CryptoNote::INodeObserver]’:
/root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.cpp:152:40: required from here
/root/bytecoin/src/common/ObserverManager.h:17:73: error: no matching function for call to ‘find(std::vector >::iterator, std::vector >::iterator, CryptoNote::INodeObserver*&)’
auto it = std::find(m_observers.begin(), m_observers.end(), observer);
^
/root/bytecoin/src/common/ObserverManager.h:17:73: note: candidate is:
In file included from /usr/include/c++/4.8/bits/locale_facets.h:48:0,
from /usr/include/c++/4.8/bits/basic_ios.h:37,
from /usr/include/c++/4.8/ios:44,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iterator:64,
from /usr/include/boost/iterator.hpp:17,
from /usr/include/boost/operators.hpp:86,
from /usr/include/boost/system/error_code.hpp:17,
from /usr/include/boost/asio/detail/throw_error.hpp:19,
from /usr/include/boost/asio/detail/impl/posix_event.ipp:23,
from /usr/include/boost/asio/detail/posix_event.hpp:95,
from /usr/include/boost/asio/detail/event.hpp:25,
from /usr/include/boost/asio/detail/task_io_service_thread_info.hpp:18,
from /usr/include/boost/asio/impl/handler_alloc_hook.ipp:26,
from /usr/include/boost/asio/handler_alloc_hook.hpp:80,
from /usr/include/boost/asio/detail/handler_alloc_helpers.hpp:21,
from /usr/include/boost/asio/detail/bind_handler.hpp:19,
from /usr/include/boost/asio/detail/wrapped_handler.hpp:18,
from /usr/include/boost/asio/io_service.hpp:24,
from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.h:10,
from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.cpp:5:
/usr/include/c++/4.8/bits/streambuf_iterator.h:369:5: note: template typename __gnu_cxx::__enable_if::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)
find(istreambuf_iterator<_CharT> __first,
^
/usr/include/c++/4.8/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed:
In file included from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.h:12:0,
from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.cpp:5:
/root/bytecoin/src/common/ObserverManager.h:17:73: note: ‘__gnu_cxx::__normal_iterator > >’ is not derived from ‘std::istreambuf_iterator<_CharT>’
auto it = std::find(m_observers.begin(), m_observers.end(), observer);
^
/root/bytecoin/src/common/ObserverManager.h: In instantiation of ‘bool tools::ObserverManager::remove(T*) [with T = CryptoNote::INodeObserver]’:
/root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.cpp:156:43: required from here
/root/bytecoin/src/common/ObserverManager.h:28:73: error: no matching function for call to ‘find(std::vector >::iterator, std::vector >::iterator, CryptoNote::INodeObserver*&)’
auto it = std::find(m_observers.begin(), m_observers.end(), observer);
^
/root/bytecoin/src/common/ObserverManager.h:28:73: note: candidate is:
In file included from /usr/include/c++/4.8/bits/locale_facets.h:48:0,
from /usr/include/c++/4.8/bits/basic_ios.h:37,
from /usr/include/c++/4.8/ios:44,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iterator:64,
from /usr/include/boost/iterator.hpp:17,
from /usr/include/boost/operators.hpp:86,
from /usr/include/boost/system/error_code.hpp:17,
from /usr/include/boost/asio/detail/throw_error.hpp:19,
from /usr/include/boost/asio/detail/impl/posix_event.ipp:23,
from /usr/include/boost/asio/detail/posix_event.hpp:95,
from /usr/include/boost/asio/detail/event.hpp:25,
from /usr/include/boost/asio/detail/task_io_service_thread_info.hpp:18,
from /usr/include/boost/asio/impl/handler_alloc_hook.ipp:26,
from /usr/include/boost/asio/handler_alloc_hook.hpp:80,
from /usr/include/boost/asio/detail/handler_alloc_helpers.hpp:21,
from /usr/include/boost/asio/detail/bind_handler.hpp:19,
from /usr/include/boost/asio/detail/wrapped_handler.hpp:18,
from /usr/include/boost/asio/io_service.hpp:24,
from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.h:10,
from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.cpp:5:
/usr/include/c++/4.8/bits/streambuf_iterator.h:369:5: note: template typename __gnu_cxx::__enable_if::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)
find(istreambuf_iterator<_CharT> __first,
^
/usr/include/c++/4.8/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed:
In file included from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.h:12:0,
from /root/bytecoin/src/node_rpc_proxy/NodeRpcProxy.cpp:5:
/root/bytecoin/src/common/ObserverManager.h:28:73: note: ‘__gnu_cxx::__normal_iterator > >’ is not derived from ‘std::istreambuf_iterator<_CharT>’
auto it = std::find(m_observers.begin(), m_observers.end(), observer);
^
/root/bytecoin/src/common/ObserverManager.h: In member function ‘bool tools::ObserverManager::add(T*) [with T = CryptoNote::INodeObserver]’:
/root/bytecoin/src/common/ObserverManager.h:24:3: error: control reaches end of non-void function [-Werror=return-type]
}
^
/root/bytecoin/src/common/ObserverManager.h: In member function ‘bool tools::ObserverManager::remove(T*) [with T = CryptoNote::INodeObserver]’:
/root/bytecoin/src/common/ObserverManager.h:35:3: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1plus: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/node_rpc_proxy.dir/node_rpc_proxy/NodeRpcProxy.cpp.o] Error 1
make[3]: Leaving directory `/root/bytecoin/build/release'
make[2]: *** [src/CMakeFiles/node_rpc_proxy.dir/all] Error 2
make[2]: Leaving directory `/root/bytecoin/build/release'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/bytecoin/build/release'
make: *** [build-release] Error 2