Dynamic Epsilon compilation issues on Windows

Discussion and help for Compilation problems and platform portability.

Moderators: Dade, coordinators

Dynamic Epsilon compilation issues on Windows

Postby Lord Crc » Sun Nov 08, 2009 4:04 pm

Hi,

the "static const float DEFAULT_EPSILON_MIN = 1e-9f" stuff does not compile in windows. It appears only integral types can be static const members.

Is there any problem with using #define for these?
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 5032
Joined: Sat Nov 17, 2007 2:10 pm

Re: Dynamic Epsilon compilation issues on Windows

Postby Dade » Sun Nov 08, 2009 4:47 pm

Lord Crc wrote:the "static const float DEFAULT_EPSILON_MIN = 1e-9f" stuff does not compile in windows. It appears only integral types can be static const members.


Wired, I wonder why they impose that limitation :shock:

Lord Crc wrote:Is there any problem with using #define for these?


It shouldn't be a problem at all. I used "static const float" because .... because in Java there are no "#define" :mrgreen:
User avatar
Dade
Developer
 
Posts: 8404
Joined: Sat Apr 19, 2008 6:04 pm
Location: Italy

Re: Dynamic Epsilon compilation issues on Windows

Postby Lord Crc » Sun Nov 08, 2009 4:57 pm

Dade wrote:I wonder why they impose that limitation :shock:


Apparently the new C++ standard will fix this.

Dade wrote:It shouldn't be a problem at all. I used "static const float" because .... because in Java there are no "#define" :mrgreen:


Allrighty, I'll push my changes then :)
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 5032
Joined: Sat Nov 17, 2007 2:10 pm


Return to Compilation & Portability

Who is online

Users browsing this forum: No registered users and 1 guest