From 38bf40884c262fb6803a3c286ecd0ceb6d771797 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 27 Sep 2013 05:18:34 -0700 Subject: [PATCH] Fix nonstandard C++ extension in getNullSink --- beast/utility/impl/Journal.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/beast/utility/impl/Journal.cpp b/beast/utility/impl/Journal.cpp index 3efc51b212..e0927dd956 100644 --- a/beast/utility/impl/Journal.cpp +++ b/beast/utility/impl/Journal.cpp @@ -27,25 +27,25 @@ bool Journal::Sink::active (Severity) return true; } +// A Sink that does nothing. +class NullJournalSink : public Journal::Sink +{ +public: + void write (Journal::Severity, std::string const&) + { + } + + bool active (Journal::Severity) + { + return false; + } +}; + //------------------------------------------------------------------------------ Journal::Sink& Journal::getNullSink () { - // A Sink that does nothing. - class NullSink : public Sink - { - public: - void write (Severity, std::string const&) - { - } - - bool active (Severity) - { - return false; - } - }; - - return *SharedSingleton ::get ( + return *SharedSingleton ::get ( SingletonLifetime::neverDestroyed); }