Open kanstantsin-chernik opened 4 years ago
@krzysztof-jusiak I think boost.di should define it's own aliases for these features
I can do this if you think it is the way to go.
Also, it is happening right into di.hpp
#if __has_include(<boost/shared_ptr.hpp>)
// clang-format on
#include <boost/shared_ptr.hpp>
#else
Temporary fixed with workaround:
#if !defined(__builtin_assume)
#define __builtin_assume(...) 0
#endif
#define __has_builtin(...) 1
#define BOOST_DI_CFG_CTOR_LIMIT_SIZE 17
Expected Behavior
Boost and boost di should not have conflicts
Actual Behavior
As
di.hpp
defines__has_builtin
the following code fails with an errorerror C3861: '__builtin_assume': identifier not found
Steps to Reproduce the Problem
boost\smart_ptr\detail\local_counted_base.hpp
afterdi.hpp
Specifications