Boost logo

Boost Users :

From: Robbie Morrison (robbie_at_[hidden])
Date: 2007-10-19 15:52:25


------------------------------------------------------------
Subject: Boost-users Digest, Vol 1423, Issue 3
Date: Thu, 18 Oct 2007 12:00:06 -0400
Message-ID: <mailman.11.1192723206.19439.boost-users_at_[hidden]>
------------------------------------------------------------
Message: 3
Date: Thu, 18 Oct 2007 17:03:25 +0200
From: Vinzenz 'evilissimo' Feenstra <evilissimo_at_[hidden]>
Subject: Re: [Boost-users] [mpl] at_c type compiler error
To: boost-users_at_[hidden]
Message-ID: <471775BD.3010403_at_[hidden]>
------------------------------------------------------------

Chris Weed schrieb:

>>> >>> {
>>> >>> return t.get<0>();
>>> >>> }

>> >> {
>> >> return boost::get<0>(t);
>> >> }

Hi all -- Just to say I encountered what looks to be
the same problem. Here is the note I left myself:

// can later access the statistics as follows:
//
// std::tr1::tuple<int, double, double, double, double, double> stats;
// stats = myTs.getStats();
// int count;
// count = stats.get<0>(); // member function usage (could be buggy)
// count = std::tr1::get<0>(stats); // free function usage

Also:

#include <tr1/tuple> // n-tuples

I relealize this is the TR1 version and not the
Boost version. Please let me know if some
stripped down example code would be useful.

My development environment for the record:

  boost : 1.34.1 (via ./configure; make all; make install)
  gcc : 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
  os : Ubuntu 6.10, Linux 2.6.17-12-generic (7.04 is current)
  hardware : Toshiba Tecra A2 330 laptop (purchased Aug-2004)

cheers
Robbie

---
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Institute for Energy Engineering (IET)
Technical University of Berlin (TU-Berlin), Germany
[from IMAP client]

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