From 43e4f1a766a60ed62175fdd3ec717037e6a5be90 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Fri, 15 Sep 2006 16:41:43 +0000 Subject: [PATCH] merged from HEAD [SVN r35127] --- test/iterator_facade.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/iterator_facade.cpp b/test/iterator_facade.cpp index 305dfe5..4436a27 100755 --- a/test/iterator_facade.cpp +++ b/test/iterator_facade.cpp @@ -56,8 +56,11 @@ struct proxy int& state; }; - -struct value { int x; }; + +struct value +{ + void mutator() {} // non-const member function +}; struct input_iter : boost::iterator_facade< @@ -97,8 +100,8 @@ int main() // test for a fix to http://tinyurl.com/zuohe // These two lines should be equivalent (and both compile) input_iter p; - (*p).x = 2; - p->x = 2; + (*p).mutator(); + p->mutator(); return 0; }