With Sun CC temporaries have block scope unless '-features=tmplife' is used.
Fixes bug report 1230877. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
daef468900
commit
8bc9a2f0b1
@ -1896,6 +1896,12 @@ AC_CXX_STATIC_CAST
|
||||
dnl we don't use HAVE_DYNAMIC_CAST anywhere right now...
|
||||
dnl AC_CXX_DYNAMIC_CAST
|
||||
|
||||
dnl With Sun CC, temporaries have block scope by default. This flag is needed
|
||||
dnl to get the expression scope behaviour that conforms to the standard.
|
||||
if test "x$SUNCXX" = xyes; then
|
||||
CXXFLAGS="$CXXFLAGS -features=tmplife"
|
||||
fi
|
||||
|
||||
dnl check for std::string or std::wstring
|
||||
if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
|
||||
AC_LANG_PUSH(C++)
|
||||
|
Loading…
Reference in New Issue
Block a user