change assertion for MSVC and Sun CC

This commit is contained in:
Sébastien Loriot 2011-02-28 16:26:20 +00:00
parent e5a96255ba
commit a3d1cb41b1
1 changed files with 5 additions and 0 deletions

View File

@ -85,8 +85,13 @@ public:
{
// VC++ should use instead : (i<=s) || !is_valid(i) || !is_valid(s)
// Or should I use is_valid() ? or is_valid_or_nan() ?
#if defined __SUNPRO_CC || defined(BOOST_MSVC)
CGAL_assertion_msg((i<=s) || !is_valid(i) || !is_valid(s),
" Variable used before being initialized (or CGAL bug)");
#else
CGAL_assertion_msg(!(i>s),
" Variable used before being initialized (or CGAL bug)");
#endif
#ifndef CGAL_DISABLE_ROUNDING_MATH_CHECK
CGAL_assertion_code((void) tester;) // Necessary to trigger a runtime test of rounding modes.
#endif