Boost logo

Boost :

From: Marco Costalba (mcostalba_at_[hidden])
Date: 2008-06-05 15:05:35

This is very strange given that boost::switch has been dwnloaded from
Vault 1637 times as of now.

But just including

#include <boost/switch.hpp>

Gives a compile error with MSVC 2008 under Vista:

1>boost/switch.hpp(62) : error C2785: 'R
*)' and 'void boost::switch_detail::forced_return(const void *)' have
different return types
1> boost/switch.hpp(54) : see declaration of
1> boost/switch.hpp(62) : see declaration of
1>boost/switch.hpp(62) : error C2912: explicit specialization; 'void
boost::switch_detail::forced_return<const void>(const void *)' is not
a specialization of a function template
1>boost/switch.hpp(62) : fatal error C1903: unable to recover from
previous error(s); stopping compilation

I used Linux/gcc till now without problems, but I wonder there is
something wrong in my MSVC setup because I would guess not all the
1637 people that have downloaded use gcc.


Boost list run by bdawes at, gregod at, cpdaniel at, john at