Looking at 
http://boost.sourceforge.net/regression-logs/cs-HP-UX-links.html#cast_test acc
you could say that aCC supports no member template keywords.

However, the code sample at the bottom compiles fine ?!

Nevertheless, I'd like to add the patches in attachment to take
the 53800 version of HP_aCC into account, set the
BOOST_NO_MEMBER_TEMPLATE_KEYWORD
and disable the pthreads.




#include <iostream>

template < bool b >
class if_true
{
public:
  template < class Y, class N >
  struct then { typedef Y type ; } ;
} ;

class B : public if_true< true >
    :: template then< int, double >
{
} ;

int main()
{
  std::cout << __HP_aCC << std::endl ;
  B b ;
  return 0 ;
}
Index: hpux.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/config/platform/hpux.hpp,v
retrieving revision 1.10
diff -r1.10 hpux.hpp
25,31d24
< // HPUX has an incomplete pthreads implementation, so it doesn't
< // define _POSIX_THREADS, but it might be enough to implement
< // Boost.Threads.
< #if !defined(BOOST_HAS_PTHREADS) && defined(_POSIX_THREAD_ATTR_STACKADDR)
< # define BOOST_HAS_PTHREADS 
< #endif
< 
Index: hp_acc.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/config/compiler/hp_acc.hpp,v
retrieving revision 1.13
diff -r1.13 hp_acc.hpp
39a40,43
> #if (__HP_aCC <= 53800 )
> #    define BOOST_NO_MEMBER_TEMPLATE_KEYWORD
> #endif
> 
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to