Boost logo

Boost Users :

Subject: Re: [Boost-users] how to compare fusion adapted structures
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2010-05-06 19:28:02


El 06/05/2010 02:04 p.m., Olaf Peter escribió:
> bool operator==( const foo& lhs, const foo& rhs )
> {
> return lhs == rhs;
> }

Unless I'm missing something, this looks like infinite recursion, which
would cause stack overflow. Don't you get a warning from your compiler?

Agustín K-ballo Bergé.-
http://talesofcpp.blogspot.com


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net