Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) enable_if_does_not_work_on_this_compiler<void>

 

Compile error.

 

Full error message

 

[C++ Error] enable_if.hpp(100): E2029 'enable_if_does_not_work_on_this_compiler<void>' must be a previously defined class or struct

 

 

 

 

 

Cause

 

#include <boost/asio.hpp>

 

 

 

 

 

 

Solution

 

Hypothesis: boost::enable_if does not work on this compiler. Use a different compiler.

 

 

 

 

 

Notes

 

This approach did not work:

 

#include <boost/utility/enable_if.hpp>
#include <boost/asio.hpp>

 

 

 

 

 

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

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml