|
Boost Users : |
Subject: [Boost-users] [forEach] Working with custom operator []
From: Avishay Ben Shabtai (avishay.ben.shabtai_at_[hidden])
Date: 2011-05-08 09:09:11
Hi
i have a container class that defines 2 overloaded [] operators:
T& operator[](const chat *);
T& operator[](unsigned int);
when i am using BOOST_FOREACH(T val,container)
i get compilation errors but working directly with iterators is working ok,
any idea?
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