Re: std::map and root

From: Benjamin Bannier <bbannier_at_gmail.com>
Date: Sat, 12 Nov 2011 18:52:38 -0500


Hi Marc,

> just wondering if you would have an idea on this :
>
> std::map<string,TH1*> hmap;
> std::map<std::string,TH1*>::const_iterator hiter(hmap.begin());
>
> -->Error: Can't call iterator::iterator(hmap.begin()) in current scope

not that have any idea what happens here, but this seems fine in 5.30.03:

    std::map<string,TH1*> hmap;
    std::map<std::string,TH1*>::const_iterator hiter = hmap.begin();

Welcome to CINT.

Benjamin

-- 
"Good judgment comes from experience. Experience comes from bad judgment."

Received on Sun Nov 13 2011 - 00:52:49 CET

This archive was generated by hypermail 2.2.0 : Sun Nov 13 2011 - 11:50:01 CET