From 9155d4c1cbd0a63fe70e9d60367fe31a4680550b Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Mon, 30 Dec 2013 07:01:44 -0600 Subject: [PATCH 1/4] hex: remove unreferenced type declaration Presence with gcc -Wunused -Werror produces error. --- include/boost/algorithm/hex.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/include/boost/algorithm/hex.hpp b/include/boost/algorithm/hex.hpp index 2adb0be4..145a414f 100644 --- a/include/boost/algorithm/hex.hpp +++ b/include/boost/algorithm/hex.hpp @@ -207,7 +207,6 @@ OutputIterator unhex ( InputIterator first, InputIterator last, OutputIterator o /// \note Based on the MySQL function of the same name template OutputIterator unhex ( const T *ptr, OutputIterator out ) { - typedef typename detail::hex_iterator_traits::value_type OutputType; // If we run into the terminator while decoding, we will throw a // malformed input exception. It would be nicer to throw a 'Not enough input' // exception - but how much extra work would that require? From d121a40f2bbc68761bb09cd7367989991ca52de9 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Sat, 3 May 2014 15:13:44 -0700 Subject: [PATCH 2/4] Add a missing 'not' to the description for mismatch. Thanks to K-ballo for the catch --- doc/mismatch.qbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/mismatch.qbk b/doc/mismatch.qbk index cf74293e..ff563989 100644 --- a/doc/mismatch.qbk +++ b/doc/mismatch.qbk @@ -60,7 +60,7 @@ mismatch ( c1.end(), c1.end(), c2.end(), c2.end()) --> Date: Wed, 18 Jun 2014 11:14:35 +0200 Subject: [PATCH 3/4] use const_formatter with an empty string argument, instead of dissect_formatter. --- include/boost/algorithm/string/trim_all.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/algorithm/string/trim_all.hpp b/include/boost/algorithm/string/trim_all.hpp index a616f7f3..e26982c2 100644 --- a/include/boost/algorithm/string/trim_all.hpp +++ b/include/boost/algorithm/string/trim_all.hpp @@ -59,7 +59,8 @@ namespace boost { ::boost::find_format_all_copy( ::boost::trim_copy_if(Input, IsSpace), ::boost::token_finder(IsSpace, ::boost::token_compress_on), - ::boost::dissect_formatter(::boost::head_finder(1))); + // ::boost::dissect_formatter(::boost::head_finder(1))); + ::boost::const_formatter(::boost::as_literal(""))); } @@ -79,7 +80,8 @@ namespace boost { ::boost::find_format_all( Input, ::boost::token_finder(IsSpace, ::boost::token_compress_on), - ::boost::dissect_formatter(::boost::head_finder(1))); + // ::boost::dissect_formatter(::boost::head_finder(1))); + ::boost::const_formatter(::boost::as_literal(""))); } From a72e443c42124a783733b7cb6af9b59ab9afbf3a Mon Sep 17 00:00:00 2001 From: Willi Burkhardt Date: Mon, 30 Jun 2014 15:27:16 +0200 Subject: [PATCH 4/4] Removed previous (old) code. Use const_formatter with an empty string argument, instead of dissect_formatter. --- include/boost/algorithm/string/trim_all.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/boost/algorithm/string/trim_all.hpp b/include/boost/algorithm/string/trim_all.hpp index e26982c2..91b55e5c 100644 --- a/include/boost/algorithm/string/trim_all.hpp +++ b/include/boost/algorithm/string/trim_all.hpp @@ -59,7 +59,6 @@ namespace boost { ::boost::find_format_all_copy( ::boost::trim_copy_if(Input, IsSpace), ::boost::token_finder(IsSpace, ::boost::token_compress_on), - // ::boost::dissect_formatter(::boost::head_finder(1))); ::boost::const_formatter(::boost::as_literal(""))); } @@ -80,7 +79,6 @@ namespace boost { ::boost::find_format_all( Input, ::boost::token_finder(IsSpace, ::boost::token_compress_on), - // ::boost::dissect_formatter(::boost::head_finder(1))); ::boost::const_formatter(::boost::as_literal(""))); }