error: 'level' is not a member of 'boost::logging::formatter'
Hello all,
First post so be gentle with me :-)
OK, I've been playing around with revision 43544 of boost::logging using
the following code;
#include
AMDG Brad wrote:
If I change line 61 from: struct syslog : is_generic, formatter::uses_tag< formatter::level, ::boost::logging::tag::level >, boost::logging::op_equal::always_equal {
to: struct syslog : is_generic, formatter::uses_tag< boost::logging::tag::level, ::boost::logging::tag::level >, boost::logging::op_equal::always_equal {
Ought to be
struct syslog
: is_generic,
formatter::uses_tag
It compiles and appears to work fine (I don't claim to understand the effects of this change). Forgive me if I'm missing something obvious or wasting anyones time. I'm thinking this is a bug but there's a high percentage chance it's an error on my part lol.
Since you aren't using this class it doesn't matter that your change is also incorrect, because the problem will not manifest itself. And yes you did find a bug. In Christ, Steven Watanabe
Steven Watanabe wrote:
Since you aren't using this class it doesn't matter that your change is also incorrect, because the problem will not manifest itself. And yes you did find a bug.
I thought I knew a bit about C++ until I found this group, certainly "rarefied air" around here. I hope I can contribute in some small way. Yes, of course, I'm using syslog_no_levels not syslog. Thank you Steven, Brad
Hi Brad,
If I change line 61 from: struct syslog : is_generic, formatter::uses_tag< formatter::level, ::boost::logging::tag::level >, boost::logging::op_equal::always_equal {
to: struct syslog : is_generic, formatter::uses_tag< boost::logging::tag::level, ::boost::logging::tag::level >, boost::logging::op_equal::always_equal {
Yup, this was a bug. It should have been: struct syslog : is_generic, formatter::uses_tag< syslog, ::boost::logging::tag::level >, boost::logging::op_equal::always_equal { (as Steven already said) I've fixed and committed this.
It compiles and appears to work fine (I don't claim to understand the effects of this change). Forgive me if I'm missing something obvious or wasting anyones time. I'm thinking this is a bug but there's a high percentage chance it's an error on my part lol.
Anyway, I'm having some great fun with boost (asio and logging so far) and appreciate the work some of you guys have put into these libs.
Cool ;) You'll probably also enjoy boost::bind, boost::function, boost::format as well (and many others :)). Best, John
Thanks, Brad
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- http://John.Torjo.com -- C++ expert http://blog.torjo.com ... call me only if you want things done right
participants (3)
-
Brad
-
John Torjo
-
Steven Watanabe