GithubHelp home page GithubHelp logo

Comments (9)

joto avatar joto commented on June 24, 2024

@alex85k: Can you verify this works now?

from libosmium.

alex85k avatar alex85k commented on June 24, 2024

Yes, this seems to be fixed. Thank you!

from libosmium.

alex85k avatar alex85k commented on June 24, 2024

Sorry, it is not so clear - different task-related error showed:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xrefwrap(269): error C2280: 'std::_Callable_base<_Ty,false>::_Callable_base(const std::_Callable_base<_Ty,false> &)' : attempting to reference a deleted function [D:\build_d\libosmium2\build-cmake\examples\osmium_area_test.vcxproj]
          with
          [
              _Ty=osmium::io::detail::XMLParser
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xrefwrap(198) : compiler has generated 'std::_Callable_base<_Ty,false>::_Callable_base' here
          with
          [
              _Ty=osmium::io::detail::XMLParser
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(180) : see reference to function template instantiation 'std::_Callable_obj<osmium::io::detail::XMLParser,false>::_Callable_obj<_Callable&>(_Ty2)' being compiled
          with
          [
              _Callable=_MyWrapper
  ,            _Ty2=_MyWrapper &
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(180) : see reference to function template instantiation 'std::_Callable_obj<osmium::io::detail::XMLParser,false>::_Callable_obj<_Callable&>(_Ty2)' being compiled
          with
          [
              _Callable=_MyWrapper
  ,            _Ty2=_MyWrapper &
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(177) : while compiling class template member function 'std::_Func_impl<_MyWrapper,_Alloc,_Ret,>::_Func_impl(std::_Func_impl<_MyWrapper,_Alloc,_Ret,> &)'
          with
          [
              _Alloc=std::allocator<std::_Func_class<bool,>>
  ,            _Ret=bool
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(209) : see reference to function template instantiation 'std::_Func_impl<_MyWrapper,_Alloc,_Ret,>::_Func_impl(std::_Func_impl<_MyWrapper,_Alloc,_Ret,> &)' being compiled
          with
          [
              _Alloc=std::allocator<std::_Func_class<bool,>>
  ,            _Ret=bool
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(495) : see reference to class template instantiation 'std::_Func_impl<_MyWrapper,_Alloc,_Ret,>' being compiled
          with
          [
              _Alloc=std::allocator<std::_Func_class<bool,>>
  ,            _Ret=bool
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(396) : see reference to function template instantiation 'void std::_Func_class<_Ret,>::_Do_alloc<_Myimpl,_Ty,_Alloc>(_Fty &&,_Alloc)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Alloc=std::allocator<std::_Func_class<bool,>>
  ,            _Fty=osmium::io::detail::XMLParser
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(396) : see reference to function template instantiation 'void std::_Func_class<_Ret,>::_Do_alloc<_Myimpl,_Ty,_Alloc>(_Fty &&,_Alloc)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Alloc=std::allocator<std::_Func_class<bool,>>
  ,            _Fty=osmium::io::detail::XMLParser
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(385) : see reference to function template instantiation 'void std::_Func_class<_Ret,>::_Reset_alloc<_Ty,std::allocator<std::_Func_class<_Ret,>>>(_Fty &&,_Alloc)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Fty=osmium::io::detail::XMLParser
  ,            _Alloc=std::allocator<std::_Func_class<bool,>>
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(385) : see reference to function template instantiation 'void std::_Func_class<_Ret,>::_Reset_alloc<_Ty,std::allocator<std::_Func_class<_Ret,>>>(_Fty &&,_Alloc)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Fty=osmium::io::detail::XMLParser
  ,            _Alloc=std::allocator<std::_Func_class<bool,>>
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(671) : see reference to function template instantiation 'void std::_Func_class<_Ret,>::_Reset<_Ty>(_Fty &&)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Fty=osmium::io::detail::XMLParser
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(671) : see reference to function template instantiation 'void std::_Func_class<_Ret,>::_Reset<_Ty>(_Fty &&)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Fty=osmium::io::detail::XMLParser
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\future(588) : see reference to function template instantiation 'std::function<_Ret (void)>::function<_Ty>(_Fx &&)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Fx=osmium::io::detail::XMLParser
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\future(588) : see reference to function template instantiation 'std::function<_Ret (void)>::function<_Ty>(_Fx &&)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Fx=osmium::io::detail::XMLParser
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\future(1742) : see reference to function template instantiation 'std::_Packaged_state<_Ret (void)>::_Packaged_state<_Ty>(_Fty2 &&)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Fty2=osmium::io::detail::XMLParser
          ]
          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\future(1744) : see reference to function template instantiation 'std::_Packaged_state<_Ret (void)>::_Packaged_state<_Ty>(_Fty2 &&)' being compiled
          with
          [
              _Ret=bool
  ,            _Ty=osmium::io::detail::XMLParser
  ,            _Fty2=osmium::io::detail::XMLParser
          ]
          D:\build_d\libosmium2\include\osmium/thread/checked_task.hpp(55) : see reference to function template instantiation 'std::packaged_task<bool (void)>::packaged_task<osmium::io::detail::XMLParser>(_Fty2 &&)' being compiled
          with
          [
              _Fty2=osmium::io::detail::XMLParser
          ]
          D:\build_d\libosmium2\include\osmium/thread/checked_task.hpp(55) : see reference to function template instantiation 'std::packaged_task<bool (void)>::packaged_task<osmium::io::detail::XMLParser>(_Fty2 &&)' being compiled
          with
          [
              _Fty2=osmium::io::detail::XMLParser
          ]
          D:\build_d\libosmium2\include\osmium/io/detail/xml_input_format.hpp(602) : see reference to function template instantiation 'osmium::thread::CheckedTask<osmium::io::detail::XMLParser>::CheckedTask<osmium::thread::Queue<std::string>&,osmium::thread::Queue<osmium::memory::Buffer>&,std::promise<osmium::io::Header>&,osmium::osm_entity_bits::type&,std::atomic<bool>&>(osmium::thread::Queue<std::string> &,osmium::thread::Queue<osmium::memory::Buffer> &,std::promise<osmium::io::Header> &,osmium::osm_entity_bits::type &,std::atomic<bool> &)' being compiled
          D:\build_d\libosmium2\include\osmium/io/detail/xml_input_format.hpp(602) : see reference to function template instantiation 'osmium::thread::CheckedTask<osmium::io::detail::XMLParser>::CheckedTask<osmium::thread::Queue<std::string>&,osmium::thread::Queue<osmium::memory::Buffer>&,std::promise<osmium::io::Header>&,osmium::osm_entity_bits::type&,std::atomic<bool>&>(osmium::thread::Queue<std::string> &,osmium::thread::Queue<osmium::memory::Buffer> &,std::promise<osmium::io::Header> &,osmium::osm_entity_bits::type &,std::atomic<bool> &)' being compiled

from libosmium.

joto avatar joto commented on June 24, 2024

Difficult to see what the problem here is. Maybe it is missing a move constructor here?

Try adding XMLInputFormat(XMLInputFormat&& other) = default; to the XMLInputFormat class declaration.

from libosmium.

alex85k avatar alex85k commented on June 24, 2024

Tried this - no result, the same errors.
Adding XMLParser(XMLParser&& other) = default; to XMLParser did not help too...

from libosmium.

joto avatar joto commented on June 24, 2024

@alex85k: Can you verify this is fixed by the last commit?

from libosmium.

alex85k avatar alex85k commented on June 24, 2024

Yes, it was fixed, thank you!

from libosmium.

alex85k avatar alex85k commented on June 24, 2024

The same error showed up for OPLOutputBlock :)
Trying to add analogous copy-constructor.

from libosmium.

alex85k avatar alex85k commented on June 24, 2024

Added something to compile: alex85k@6e430a1
( please rework )

from libosmium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.