Giter Site home page Giter Site logo

open3dgc's People

Contributors

kmammou avatar parallastra avatar remiarnaud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

open3dgc's Issues

unexpected test_o3dgc build issue

When building with:

mkdir build
cd build
cmake ../src
make

the build of the test application falls with the following, the issue is the signature of IVec3Cmp operator() needs to be const, as in
bool operator()(const Vec3<unsigned long> a,const Vec3<unsigned long> b) const

In instantiation of ‘static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = o3dgc::Vec3; _Val = std::pair<const o3dgc::Vec3, long unsigned int>; _KeyOfValue = std::_Select1st<std::pair<const o3dgc::Vec3, long unsigned int> >; _Compare = IVec3Cmp; _Alloc = std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<std::pair<const o3dgc::Vec3, long unsigned int> >*]’:
/usr/include/c++/11/bits/stl_tree.h:2435:62: required from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<const o3dgc::Vec3&>, std::tuple<>}; _Key = o3dgc::Vec3; _Val = std::pair<const o3dgc::Vec3, long unsigned int>; _KeyOfValue = std::_Select1st<std::pair<const o3dgc::Vec3, long unsigned int> >; _Compare = IVec3Cmp; _Alloc = std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree<o3dgc::Vec3, std::pair<const o3dgc::Vec3, long unsigned int>, std::_Select1st<std::pair<const o3dgc::Vec3, long unsigned int> >, IVec3Cmp, std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> > >::iterator; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree<o3dgc::Vec3, std::pair<const o3dgc::Vec3, long unsigned int>, std::_Select1st<std::pair<const o3dgc::Vec3, long unsigned int> >, IVec3Cmp, std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> > >::const_iterator]’
/usr/include/c++/11/bits/stl_map.h:501:37: required from ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = o3dgc::Vec3; _Tp = long unsigned int; _Compare = IVec3Cmp; _Alloc = std::allocator<std::pair<const o3dgc::Vec3, long unsigned int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = long unsigned int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = o3dgc::Vec3]’
/home/elk/repos/Open3DGC/src/test/src/main.cpp:849:40: required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const

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.