X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FStreamRegistry.hh;h=48e5c59a1816bfc1351132d8bb73ab37cf7395c5;hb=7108fb56be5e093ca088b583712d08f9dafc0790;hp=c35b69da708a13512cf1bf382a48801999b219dd;hpb=412024ed31a4ab4eaea7a4165a434f8efebee325;p=senf.git diff --git a/Utils/Logger/StreamRegistry.hh b/Utils/Logger/StreamRegistry.hh index c35b69d..48e5c59 100644 --- a/Utils/Logger/StreamRegistry.hh +++ b/Utils/Logger/StreamRegistry.hh @@ -29,6 +29,7 @@ // Custom includes #include #include +#include #include #include "Levels.hh" #include "../singleton.hh" @@ -55,14 +56,9 @@ namespace log { { typedef std::map Registry; - struct SelectName - { - typedef std::string result_type; - std::string const & operator()(Registry::value_type const & v) const; - }; - public: - typedef boost::transform_iterator iterator; + typedef boost::transform_iterator< ::__gnu_cxx::select1st, + Registry::const_iterator > iterator; # ifdef DOXYGEN // Hmm ... doxygen does not understand 'using declarations' ... @@ -75,11 +71,12 @@ namespace log { iterator begin(); iterator end(); + detail::StreamBase const * lookup(std::string const & name); + private: StreamRegistry(); void registerStream(detail::StreamBase const & stream); - detail::StreamBase const * lookup(std::string const & name); Registry registry_;