#8066 closed Patches (fixed)
Conflict with Boost.Log on GCC 4.4
Reported by: | Andrey Semashev | Owned by: | Hartmut Kaiser |
---|---|---|---|
Milestone: | To Be Determined | Component: | spirit |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | Cc: | spirit log attribute_value |
Description
I have a problem with compiling Boost.Log v2 with Boost.Spirit with GCC 4.4. The compiler mistakenly confuses boost::spirit::detail::attribute_value function template declared in boost/spirit/home/support/algorithm/any_if.hpp with boost::log::attribute_value class in Boost.Log which results in the following errors:
./boost/log/attributes/attribute_value.hpp:64: error: ‘class boost::log::v2_mt_posix::attribute_value’ is not a function, ./boost/spirit/home/support/algorithm/any_if.hpp:159: error: conflict with ‘template<class Pred, class Iterator1, class Last2, class Iterator2> typename boost::spirit::detail::result_of::attribute_value<Iterator1, Iterator2, Last2, Pred>::type boost::spirit::detail::attribute_value(const Iterator2&)’ ./boost/spirit/home/support/algorithm/any_if.hpp:184: error: in call to ‘attribute_value’
The problem can be resolved by qualifying the call to attribute_value function in any_if. Please, find the attached patch that fixes the problem.
Attachments (1)
Change History (4)
by , 10 years ago
Attachment: | spirit_log_fix.patch added |
---|
comment:1 by , 9 years ago
Owner: | changed from | to
---|
Any updates on this? You can see MinGW test failures because of this issue.
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 9 years ago
Note:
See TracTickets
for help on using tickets.
The patch fixes Boost.Log v2 compilation.