id summary reporter owner description type status milestone component version severity resolution keywords cc 4427 for_each does not take a non-const Function object chetant@… Kohei Takahashi "I'm trying to create a type of deserializer, templated by fusion types. I have a function object that I initialize with an input stream and its templatized operator() takes a record out of that stream and assigns it to a given input type. I was trying to use fusion::foreach for this: {{{ FusionType fvar; EntryReader er(stream); // This should call er for each entry in fvar for_each(fvar, er); }}} The problem is that for_each only accepts const references to Function objects, so EntryReader::operator()(T& out) cannot read from the stream. Is it possible to make the Function reference in for_each non-const?" Bugs closed Boost 1.68.0 fusion Boost 1.43.0 Problem fixed for_each