Fixed dynamic_cast support detection on HPUX (aCC).

This commit is contained in:
Vincent Richard 2009-05-01 17:11:20 +00:00
parent 4de47af6fa
commit f688cbb292

View File

@ -1414,8 +1414,8 @@ AC_TRY_COMPILE(
AC_MSG_CHECKING([if C++ compiler supports dynamic_cast<> (required)]) AC_MSG_CHECKING([if C++ compiler supports dynamic_cast<> (required)])
AC_TRY_COMPILE( AC_TRY_COMPILE(
[ [
class foo { virtual ~foo() { } }; class foo { public: virtual ~foo() { } };
class bar : public foo { }; class bar : public foo { public: virtual ~bar() { } };
],[ ],[
foo *c=0; foo *c=0;
bar *c1=dynamic_cast<bar*>(c); bar *c1=dynamic_cast<bar*>(c);