|
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.
Christopher
$
./bin/alignment_of_test.test/sunpro/debug/runtime-link-dynamic/alignment_of_test
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
57a58,62
> // Sun CC asserts later if there isn't a definition of this static
constant
> #ifdef __SUNPRO_CC
> template <typename T> const std::size_t alignment_of_impl<T>::value;
> #endif
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk