|
Boost-Commit : |
From: thomas.klimpel_at_[hidden]
Date: 2008-06-22 15:29:45
Author: klimpel
Date: 2008-06-22 15:29:44 EDT (Sun, 22 Jun 2008)
New Revision: 46618
URL: http://svn.boost.org/trac/boost/changeset/46618
Log:
MSVC 9.0 doesn't use partial specialization "V const" for "const double[10]"
Text files modified:
sandbox/boost/numeric/bindings/traits/detail/generate_const.hpp | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
Modified: sandbox/boost/numeric/bindings/traits/detail/generate_const.hpp
==============================================================================
--- sandbox/boost/numeric/bindings/traits/detail/generate_const.hpp (original)
+++ sandbox/boost/numeric/bindings/traits/detail/generate_const.hpp 2008-06-22 15:29:44 EDT (Sun, 22 Jun 2008)
@@ -37,6 +37,16 @@
typedef X const type;
};
+ template <typename T, int N, typename X>
+ struct generate_const< const T[N], X > {
+ typedef X const type;
+ };
+
+ template <typename T, int N, typename X>
+ struct generate_const< const T[N], X const > {
+ typedef X const type;
+ };
+
}}}}}
#endif // BOOST_NUMERIC_BINDINGS_POOR_MANS_TRAITS
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk