bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
75 stars 228 forks source link

`b2` build fails on gcc 4.8 #360

Closed Lastique closed 7 months ago

Lastique commented 7 months ago

Make sure you completed the following tasks

Environment and version details

Brief problem description

Boost.Config Drone CI fails to compile b2 with the following error:

value.cpp: In static member function 'static b2::value* b2::value::make(b2::object*)':
value.cpp:263:59: error: call of overloaded 'save(b2::object*&)' is ambiguous
  return value_cache().save<value_object, value_object>(obj);
                                                           ^
value.cpp:263:59: note: candidates are:
value.cpp:206:12: note: b2::value* b2::safe_value_cache::save(Args ...) [with Test = b2::value_object; Val = b2::value_object; Args = {b2::object*}; b2::value_ptr = b2::value*]
  value_ptr save(Args... args)
            ^
value.cpp:218:12: note: b2::value* b2::safe_value_cache::save(b2::object*) [with Test = b2::value_object; Val = b2::value_object; b2::value_ptr = b2::value*]
  value_ptr save(object * obj)
            ^

Steps to reproduce the issue

Run Boost.Config Drone CI.

grafikrobot commented 7 months ago

This was fixed in https://github.com/bfgroup/b2/commit/82b627a0c087242b7b66dd1b25714f1d9daab818