does not compile with gcc 4.9.1:
PoWCore/src/PoWUtils.h:299:36: error: ‘constexpr’ needed for in-class initialization of static data member ‘const double PoWUtils::accuracy’ of non-integral type [-fpermissive]
static const double accuracy = 7.105427357601002e-15;
^
with
-std=gnu++11 and
constexpr in PowUtils.h:
chainparams.cpp: In constructor ‘CMainParams::CMainParams()’:
chainparams.cpp:75:40: error: ambiguous overload for ‘operator=’ (operand types are ‘std::vector’ and ‘boost::assign_detail::generic_list’)
base58Prefixes[PUBKEY_ADDRESS] = list_of(38);
^
chainparams.cpp:75:40: note: candidates are:
In file included from /usr/include/c++/4.9.1/vector:69:0,
from /usr/include/c++/4.9.1/bits/random.h:34,
from /usr/include/c++/4.9.1/random:49,
from /usr/include/c++/4.9.1/bits/stl_algo.h:66,
from /usr/include/c++/4.9.1/algorithm:62,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:42,
from /usr/include/boost/shared_ptr.hpp:17,
from /usr/include/boost/date_time/time_clock.hpp:17,
from /usr/include/boost/thread/thread_time.hpp:9,
from /usr/include/boost/thread/lock_types.hpp:18,
from /usr/include/boost/thread/pthread/mutex.hpp:14,
from /usr/include/boost/thread/mutex.hpp:16,
from allocators.h:13,
from serialize.h:9,
from bignum.h:9,
from chainparams.h:9,
from chainparams.cpp:6:
/usr/include/c++/4.9.1/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator]
vector<_Tp, _Alloc>::
^
In file included from /usr/include/c++/4.9.1/vector:64:0,
from /usr/include/c++/4.9.1/bits/random.h:34,
from /usr/include/c++/4.9.1/random:49,
from /usr/include/c++/4.9.1/bits/stl_algo.h:66,
from /usr/include/c++/4.9.1/algorithm:62,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:42,
from /usr/include/boost/shared_ptr.hpp:17,
from /usr/include/boost/date_time/time_clock.hpp:17,
from /usr/include/boost/thread/thread_time.hpp:9,
from /usr/include/boost/thread/lock_types.hpp:18,
from /usr/include/boost/thread/pthread/mutex.hpp:14,
from /usr/include/boost/thread/mutex.hpp:16,
from allocators.h:13,
from serialize.h:9,
from bignum.h:9,
from chainparams.h:9,
from chainparams.cpp:6:
/usr/include/c++/4.9.1/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
In file included from /usr/include/c++/4.9.1/vector:64:0,
from /usr/include/c++/4.9.1/bits/random.h:34,
from /usr/include/c++/4.9.1/random:49,
from /usr/include/c++/4.9.1/bits/stl_algo.h:66,
from /usr/include/c++/4.9.1/algorithm:62,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:42,
from /usr/include/boost/shared_ptr.hpp:17,
from /usr/include/boost/date_time/time_clock.hpp:17,
from /usr/include/boost/thread/thread_time.hpp:9,
from /usr/include/boost/thread/lock_types.hpp:18,
from /usr/include/boost/thread/pthread/mutex.hpp:14,
from /usr/include/boost/thread/mutex.hpp:16,
from allocators.h:13,
from serialize.h:9,
from bignum.h:9,
from chainparams.h:9,
from chainparams.cpp:6:
/usr/include/c++/4.9.1/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator]
operator=(initializer_list __l)
^