From cf3a40ed5ea808a73c1d2e166754fb50f514cb44 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess <fmh6jj@gmail.com> Date: Fri, 3 Jan 2014 11:40:57 -0500 Subject: [PATCH 1/2] Added missing newline at end of file. --- doc/reference/connection.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/reference/connection.xml b/doc/reference/connection.xml index 722327e..3cf4a37 100644 --- a/doc/reference/connection.xml +++ b/doc/reference/connection.xml @@ -369,4 +369,4 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) </class> </namespace> </namespace> -</header> \ No newline at end of file +</header> From bd9ababaeced807520f20ef9e2b4a50bf75a7190 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess <fmh6jj@gmail.com> Date: Sun, 2 Mar 2014 12:39:23 -0500 Subject: [PATCH 2/2] Fixed tests for optional initialization in tests, under recent versions of clang. --- test/signal_n_test.cpp | 2 +- test/signal_test.cpp | 2 +- test/track_test.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/signal_n_test.cpp b/test/signal_n_test.cpp index 6039e67..994ee41 100644 --- a/test/signal_n_test.cpp +++ b/test/signal_n_test.cpp @@ -34,7 +34,7 @@ struct max_or_default { { try { - if(max == false) max = *first; + if(!max) max = *first; else max = (*first > max.get())? *first : max; } catch(const boost::bad_weak_ptr &) diff --git a/test/signal_test.cpp b/test/signal_test.cpp index 04e30fc..60c5e6d 100644 --- a/test/signal_test.cpp +++ b/test/signal_test.cpp @@ -29,7 +29,7 @@ struct max_or_default { { try { - if(max == false) max = *first; + if(!max) max = *first; else max = (*first > max.get())? *first : max; } catch(const boost::bad_weak_ptr &) diff --git a/test/track_test.cpp b/test/track_test.cpp index 434198a..be8141f 100644 --- a/test/track_test.cpp +++ b/test/track_test.cpp @@ -33,7 +33,7 @@ struct max_or_default { for(; first != last; ++first) { T value = *first; - if(max == false) + if(!max) { max = value; }else if(value > *max)