Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Log] translate 3rd party log entries
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2014-08-29 02:30:40

> from 3rd party lib I have to integrate the logging message -
> incorporating into boost.log. But I run into the problem with scopes:
> main.cpp: In function 'int main(int, char**)':
> main.cpp:55:5: error: no matching function for call to
> 'boost::log::v2s_mt_posix::attributes::named_scope_entry::named_scope_entry(const
> char [6], const char*&, int&)'
> main.cpp:55:5: note: candidates are:
> /opt/boost/boost_1_55_0/boost/log/attributes/named_scope.hpp:88:5: note:
> boost::log::v2s_mt_posix::attributes::named_scope_entry::named_scope_entry(const
> string_literal&, const string_literal&, unsigned int)
> /opt/boost/boost_1_55_0/boost/log/attributes/named_scope.hpp:88:5:
> note: no known conversion for argument 2 from 'const char*' to 'const
> string_literal& {aka const
> boost::log::v2s_mt_posix::basic_string_literal<char>&}'
> /opt/boost/boost_1_55_0/boost/log/attributes/named_scope.hpp:63:8: note:
> boost::log::v2s_mt_posix::attributes::named_scope_entry::named_scope_entry(const
> boost::log::v2s_mt_posix::attributes::named_scope_entry&)
> /opt/boost/boost_1_55_0/boost/log/attributes/named_scope.hpp:63:8:
> note: candidate expects 1 argument, 3 provided
> The problem rises on string_literal of __FILE__ entry. How can I get
> this working??

probly not in that way, isn't it? Is there a work arround?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at