On Friday 31 August 2001 16:01, John Levon wrote:
> On Fri, Aug 31, 2001 at 04:31:24PM +0200, Lars Gullik Bjønnes wrote:
>
> > | But this is a democracy I opt for reverting your boost changes, let's
see
> > | what others say.
> >
> > but it isn't really... and as always when we stumble onto bad
> > compilers we wait a bit... calm down... and try to realize _WHY_
> > things stop working, before just shouting _REVERT REVERT_.
>
> And in the meantime Angus is prevented from helping to fix the HUGE pile of
bugs
> we have ... all for the sake of a pointless upgrade ...
No, I have a fix. It just came as a bit of a surprise.
Lars, the wee program below isolates my problems. Code compiles with
utility.hpp but not with tuple.hpp. Would it be helpful if I sent the error
messages?
Angus
#include <iostream>
#include <utility>
//#include <boost/tuple/tuple.hpp>
//#include <boost/utility.hpp>
class Testclass {
public:
Testclass() : a(10), b(20) {}
std::pair<int, int> const get() const
{
return std::make_pair(a, b);
}
private:
int a;
int b;
};
int main()
{
Testclass test;
int alpha;
int beta;
boost::tie(alpha, beta) = test.get();
std::cerr << "alpha = " << alpha
<< " beta = " << beta << std::endl;
return 0;
}