From bb2ffadade154af496071cd07ecf8466ddba48e3 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 4 Feb 2001 18:25:55 +0000 Subject: [PATCH] Added lvalue test [SVN r8922] --- include/boost/pending/iterator_tests.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/boost/pending/iterator_tests.hpp b/include/boost/pending/iterator_tests.hpp index 15a5ec4..fcdbb76 100644 --- a/include/boost/pending/iterator_tests.hpp +++ b/include/boost/pending/iterator_tests.hpp @@ -3,7 +3,9 @@ // This is meant to be the beginnings of a comprehensive, generic // test suite for STL concepts such as iterators and containers. - +// +// Revision History: +// 04 Feb 2001 Added lvalue test (David Abrahams) #include #include @@ -87,6 +89,10 @@ template void forward_iterator_test(Iterator i, T v1, T v2) { input_iterator_test(i, v1, v2); + + // Test for lvalue + const T* p = &*i; + (void)p; } // Preconditions: *i == v1, *++i == v2