Menu

#5 C++11 compatibility

open
nobody
None
5
2012-10-10
2011-10-12
No

VCG as for r4136 has issues with C++11 in at least two files. Fixes for these are attached.

math/base.h: static_assert should probably be replaced with the definition given in boost. (I just removed it entirely.)
complex/algorithms/clean.h: std::make_pair should be used without template parameters (it infers the type automatically). Using it differently will result in compilation errors with C++11, because of a mismatch of types.

Discussion

  • Dennis Schridde

    Dennis Schridde - 2011-10-12

    Remove static_assert from math/base.h

     
  • Dennis Schridde

    Dennis Schridde - 2011-10-12

    Fix usage of std::make_pair in comlex/algorithms/clean.h

     
  • Dennis Schridde

    Dennis Schridde - 2011-10-12

    wrap/io_trimesh/import_ply.h: #include <cstddef> is required to make the offsetof() macro available.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.