Boost logo

Boost :

Subject: Re: [boost] help detecting presence of operator[]
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-01-23 03:16:00


Jeffrey Hellrung wrote:
> Hi all,
>
> I'm trying to perform a compile-time check to determine if a class has
> an operator[]. I'm using a "trick" I think I've seen in Adobe's
> library and on this list in the past:
In the vautl I uplaoded a macro to generate the needed meta-function for
such method/operator test.
Take a look at introspection.zip, especially the has_member_function.hpp
file.

-- 
___________________________________________
Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk