Bitcoin Forum
June 01, 2024, 09:42:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: latest git does not compile with boost-1.55.0  (Read 1093 times)
otila (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


View Profile
March 14, 2014, 07:55:26 PM
 #1

Code:
chainparams.cpp:217:40: error: use of overloaded operator '=' is ambiguous (with operand types 'std::vector<unsigned char>' and
      'boost::assign_detail::generic_list<int>')
        base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x35)(0x83)(0x94);
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/stl_vector.h:439:7: note: candidate function
      operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/stl_vector.h:427:7: note: candidate function
      operator=(const vector& __x);
      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/bits/stl_vector.h:461:7: note: candidate function
      operator=(initializer_list<value_type> __l)
      ^
34 warnings and 10 errors generated.

tried with gcc-4.8.2 and clang-3.4.
Cryddit
Legendary
*
Offline Offline

Activity: 924
Merit: 1129


View Profile
March 19, 2014, 03:22:53 AM
 #2

I had the same problem.  A boost template expanded to something that contains an operator redefinition that made the resolution ambiguous. 

From time to time I think about "deBoosting" the source, but because there's approximately zero chance of that change going through, I stop thinking about it...

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!