Opened 6 years ago
Last modified 6 years ago
#12882 new Bugs
Boost.Log fails to build on Solaris 11.3 x86 using Developer Studio 12.5
Reported by: | Owned by: | akrzemi1 | |
---|---|---|---|
Milestone: | To Be Determined | Component: | optional |
Version: | Boost 1.63.0 | Severity: | Showstopper |
Keywords: | Cc: | Andrey.Semashev@… |
Description
I'm build Boost 1.63.0 on Solaris 11.3 x86 using Developer Studio 12.5.
I use the following command to do the build:
./b2 link=shared runtime-link=shared address-model=64 threading=multi variant=release cxxflags="-std=c++14" linkflags="-std=c++14"
The above build fails in Boost.Log with the error message:
"libs/log/src/named_scope.cpp", line 118: Error: Overloading ambiguity between "boost::optional<boost::log::v2_mt_posix::attributes::named_scope_list>::operator=<boost::log::v2_mt_posix::attributes::named_scope_list&>(boost::log::v2_mt_posix::attributes::named_scope_list&)" and "boost::optional<boost::log::v2_mt_posix::attributes::named_scope_list>::operator=<boost::log::v2_mt_posix::attributes::named_scope_list&>(boost::log::v2_mt_posix::attributes::named_scope_list&)".
I have looked at the file where the error is occurring but due to my unfamiliarity with this area of Boost, I couldn't figure out what the problem is. However, it is possible that the problem could have something to do with Boost.Optional.
Can you let me know what I can do in order for the Boost build to successfully generate the Boost.Log library files.
Change History (1)
comment:1 by , 6 years ago
Cc: | added |
---|---|
Component: | log → optional |
Owner: | changed from | to
It's not clear which
operator=
the compiler complains about, but I see nothing wrong with Boost.Log code. Chances are high that this is a compiler bug. I'm reassigning to Boost.Optional so that its maintainer can see if that's indeed the case and whether it can be worked around.