yangqiaosheng / libcitygml

Automatically exported from code.google.com/p/libcitygml
GNU Lesser General Public License v2.1
0 stars 0 forks source link

FLT_EPSILON is not defined #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems like the definition of FLT_EPSILON was omited in code. This causes the 
library not to compile ...

Original issue reported on code.google.com by jan.kli...@gmail.com on 27 Sep 2012 at 10:08

GoogleCodeExporter commented 9 years ago
I propose using std::numeric_limits<float>::epsilon(), and #include <limits> 
instead of FLT_EPSILON

Original comment by BlackRat...@googlemail.com on 31 Oct 2012 at 6:45

GoogleCodeExporter commented 9 years ago
FLT_EPSILON is supposed to be defined in float.h or cfloat. Bud the templated 
approach BlackRatHat proposes is more C++ oriented, I'll fix that this evening.
Thanks

Original comment by jpouder...@gmail.com on 31 Oct 2012 at 8:23

GoogleCodeExporter commented 9 years ago
you're welcome :)

Original comment by BlackRat...@googlemail.com on 31 Oct 2012 at 9:26

GoogleCodeExporter commented 9 years ago

Original comment by jpouder...@gmail.com on 18 Nov 2012 at 4:34