From: Bjoern Sikora Date: Tue, 16 Jul 2013 09:01:28 +0000 (+0200) Subject: Made compilable again. Now boost_system is explicitly needed. On the const map we... X-Git-Tag: v1.1~10 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=63e1bf1fb03a453d11dbdd98ee991e53745958c2;p=bpdyndnsd Made compilable again. Now boost_system is explicitly needed. On the const map we need the const_reverse_iterator not only reverse_iterator. --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 38b0178..d2facfd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ # Find Boost -find_package(Boost COMPONENTS program_options filesystem regex serialization REQUIRED) +find_package(Boost COMPONENTS program_options filesystem regex serialization system REQUIRED) # Find CURL find_package(CURL) diff --git a/src/logger.cpp b/src/logger.cpp index d57ddc2..37bc68d 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -1969,7 +1969,7 @@ void Logger::print_last_updates( const std::string& ip_host, const time_t curren int i = 0; - for ( std::map::reverse_iterator r_iter = last_updates.rbegin(); (r_iter != last_updates.rend()) && (i < max_equal_updates_in_succession); r_iter++ ) + for ( std::map::const_reverse_iterator r_iter = last_updates.rbegin(); (r_iter != last_updates.rend()) && (i < max_equal_updates_in_succession); r_iter++ ) { msg << r_iter->first << "->" << r_iter->second; i++;