mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-29 20:37:17 +02:00
The previous test ran afoul of a few compilers. Let's try again.
[SVN r35126]
This commit is contained in:
@ -57,7 +57,10 @@ struct proxy
|
|||||||
int& state;
|
int& state;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct value { int x; };
|
struct value
|
||||||
|
{
|
||||||
|
void mutator() {} // non-const member function
|
||||||
|
};
|
||||||
|
|
||||||
struct input_iter
|
struct input_iter
|
||||||
: boost::iterator_facade<
|
: boost::iterator_facade<
|
||||||
@ -97,8 +100,8 @@ int main()
|
|||||||
// test for a fix to http://tinyurl.com/zuohe
|
// test for a fix to http://tinyurl.com/zuohe
|
||||||
// These two lines should be equivalent (and both compile)
|
// These two lines should be equivalent (and both compile)
|
||||||
input_iter p;
|
input_iter p;
|
||||||
(*p).x = 2;
|
(*p).mutator();
|
||||||
p->x = 2;
|
p->mutator();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user