Boost logo

Boost :

From: Christopher Currie (christopher_at_[hidden])
Date: 2003-05-06 17:51:05

The following is a proposed patch to boost/type_traits/alignment_of.hpp.
This file has been causing an assertion in the Sun compiler, for which
this patch is a workaround.

With this patch applied the alignment_of test case now compiles under
the Sun compiler, and runs without errors.

Let me know if anyone has any questions.


Running 1 test case...

*** No errors detected

$ cvs diff alignment_of.hpp
Index: alignment_of.hpp
RCS file: /cvsroot/boost/boost/boost/type_traits/alignment_of.hpp,v
retrieving revision 1.3
diff -r1.3 alignment_of.hpp
> // Sun CC asserts later if there isn't a definition of this static
> #ifdef __SUNPRO_CC
> template <typename T> const std::size_t alignment_of_impl<T>::value;
> #endif

Boost list run by bdawes at, gregod at, cpdaniel at, john at