Ok, NOW compile fails in bufferlist.C

Error 1? There is no mem_fun in lyxfunctional at all! Or in any other file!
Error 2, back_inserter_fun is probably a const-thing.
Error 3 is obvious.

Giving up and going home.
Angus



cxx: Error: bufferlist.C, line 167: #20 identifier "mem_fun" is undefined
        for_each(bstore.begin(), bstore.end(), mem_fun(&Buffer::resize));
-----------------------------------------------^
cxx: Error: bufferlist.C, line 228: #304 no instance of function template
          "back_inserter_fun" matches the argument list
            argument types are: (std::vector<std::string,
                      std::allocator<std::map<std::string, Language,
                      std::less<std::string>, std::allocator<std::pair<const
                      std::string, Language>>>::key_type>>, const std::string
                      &(Buffer::*)() const)
                  back_inserter_fun(nvec, &Buffer::fileName));
------------------^
cxx: Error: support/lyxfunctional.h, line 14: #118 a void function may not
          return a value
          detected during:
            instantiation of "R class_fun_t<R, C, A>::operator()(A &) const
                      [with R=void, C=BufferList, A=Buffer *]" at line 97 of
                      "/usr/include/cxx/algorithm.cc"
            instantiation of "Function std::for_each(InputIterator,
                      InputIterator, Function) [with InputIterator=Buffer **,
                      Function=class_fun_t<void, BufferList, Buffer *>]"
                return (c.*cmf)(a);
-----------------------^                                                      
  

Reply via email to