|
Boost : |
Subject: [boost] nvcc config and mpl_assert
From: Andrey Asadchev (asadchev_at_[hidden])
Date: 2010-09-02 20:04:48
recent boost distribution introduced nvcc as compiler which results in
failed compilation when using mpl assert (and components of mpl which do so)
here is the fix (it produces warnings, but allows for compile)
--- config/compiler/nvcc.hpp 2010-09-02 18:43:46.000000000 -0500
+++ config/compiler/nvcc.hpp~ 2010-09-02 16:40:32.000000000 -0500
@@ -17,8 +17,8 @@
// Boost support macro for NVCC
// NVCC Basically behaves like some flavor of MSVC6 + some specific quirks
-//#define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
-//#define BOOST_MSVC6_MEMBER_TEMPLATES
+#define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
+#define BOOST_MSVC6_MEMBER_TEMPLATES
#define BOOST_HAS_UNISTD_H
#define BOOST_HAS_STDINT_H
#define BOOST_HAS_SIGACTION
--- mpl/aux_/config/gcc.hpp 2010-09-02 18:49:14.000000000 -0500
+++ mpl/aux_/config/gcc.hpp~ 2010-09-02 19:03:39.000000000 -0500
@@ -14,7 +14,7 @@
// $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
// $Revision: 49267 $
-#if defined(__GNUC__) && !(defined(__EDG_VERSION__) || defined(__CUDACC__))
+#if defined(__GNUC__) && !defined(__EDG_VERSION__)
# define BOOST_MPL_CFG_GCC ((__GNUC__ << 8) | __GNUC_MINOR__)
#else
# define BOOST_MPL_CFG_GCC 0
I think nvcc compiler must be differentiated whenever it uses Microsoft
(Windows) or GCC(linux) compiler
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk