Hi,

I just confirmed that I get the same compile error with 1_45_0 using gcc 4.2.1 (Macintosh XCode 3.2.2).

Original error was with gcc 4.3.x on SuSE linux 11

Thanks,
Paul Rose

On Thu, Feb 10, 2011 at 12:58 PM, Paul Rose <paul.d.rose@gmail.com> wrote:
Hi,

I'm getting compile errors trying to use iterator_to() on an unordered_set when given a const reference (and returning a const_iterator).

It works fine for me with ordered set.

I am able to reproduce this error by adding the following two lines:

   MyClass const &cr = values[0];
   base_set.iterator_to(cr);

to the bottom of the Example code (just before the return 0 from main) for unordered_set