$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Code stopped compile after migrating 1.42->1.45
From: Igor R (boost.lists_at_[hidden])
Date: 2010-12-07 13:27:05
> typedef std::map<int, int> MyMap;
>
> std::ostream& operator << (std::ostream& outs, const MyMap& a)
> {
> Â Â Â Â std::for_each(a.begin(), a.end(),
> Â Â Â Â Â Â Â Â outs << boost::lambda::bind(&MyMap::value_type::second,
> boost::lambda::_1) << "\n");
> Â Â Â Â return outs;
> }
FWIW, if you remove constness from "const MyMap& a" it will compile.