Opened 19 years ago

Closed 19 years ago

#164 closed Bugs (Invalid)

test static_assert/static_assert_example_1.cpp is invalid

Reported by: vsysolts Owned by: John Maddock
Milestone: Component: static_assert
Version: None Severity:
Keywords: Cc:

Description

In this test BOOST_STATIC_ASSERT is used with 
condition:
WCHAR_MIN >= 0
But on red Hat 8.0 Linux x86 (gcc3.2, Intel compiler 
tried) wchar_t is signed and WCHAR_MIN = 
0x80000000 = -2147483648, so assertion fails.
Test must be modified to be more portable.

Change History (1)

comment:1 by John Maddock, 19 years ago

Status: assignedclosed
Logged In: YES 
user_id=14804

You're missing the point: the whole objective of that example 
is to demonstrate how to test non-portable assumptions.  
However I notice that it is included as part of the regression 
tests, and that shouldn't be the case, so I'll fix the Jamfile.

Regards,

John Maddock
Note: See TracTickets for help on using tickets.