merged from HEAD

[SVN r35127]
This commit is contained in:
Dave Abrahams
2006-09-15 16:41:43 +00:00
parent 02d22c12ae
commit 43e4f1a766

View File

@ -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;
}