Boost logo

Boost :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2006-03-03 17:22:40


BOOST_MULTI_INDEX_CONST_MEM_FUN is implemented ths way:

#define BOOST_MULTI_INDEX_CONST_MEM_FUN(Class,Type,MemberFunName) \

But when I need to do something like this:

typedef boost::tuple<std::string, std::string> tuple;

BOOST_MULTI_INDEX_CONST_MEM_FUN(tuple, std::string const&, get<0>);

It doesnt work because of the two closing brackets that results from
the macro expansion.
Couldnt be added a space after &Class::MemberFunName ?
Here it works ok adding the space.


Felipe Magno de Almeida

Boost list run by bdawes at, gregod at, cpdaniel at, john at