Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) tuple_basic.hpp: Multiple declaration for 'element<N,T>'

 

Compile error.

 

 

 

 

 

Full error messages

 

[C++ Error] tuple_basic.hpp(156): E2238 Multiple declaration for 'element<N,T>'
[C++ Error] tuple_basic.hpp(141): E2344 Earlier declaration of 'element<N,T>'

 

 

 

 

 

Cause

 

IDE: C++ Builder 6.0

Compiler: Borland BCC32.EXE version 6.0.10.157

Boost version: 1.35.0.

 

#include <boost/tuple/tuple.hpp>

 

 

 

 

 

Solution/workaround

 

Add a #define before the #include.

 

#define BOOST_NO_CV_SPECIALIZATIONS
#include <boost/tuple/tuple.hpp>

 

In my humble opinion, this is a workaround. It might cause new compile errors.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict