Original Post
I''m using MSVC 6.0 SP 5 and receive an internal compiler error while trying to compile the example code given in the boost docs. A quick search of Google didn''t bring anything obvious up.
I''m using the compatibility version of the signals library syntax, and this is the code that fails to compile:
#include <boost/signal.hpp>
#include <iostream>
struct HelloWorld {
void operator () () const {
std :: cout << "Hello World!" << std :: endl;
}
};
int main (int argc, char **argv) {
boost :: signal0 <void> sig;
HelloWorld hello;
sig.connect (hello);
sig ();
return 0;
}
With the following error:
--------------------Configuration: BoostTest - Win32 Debug--------------------
Compiling...
main.cpp
c:\boost\boost-1.30.2\boost\iterator_adaptors.hpp(872) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file ''msc1.cpp'', line 1794)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
c:\boost\boost-1.30.2\boost\signals\signal_template.hpp(303) : see reference to class template instantiation ''boost::iterator_adaptor<class std::_Tree<class boost::any,struct std::pair<class boost::any const ,struct boost::signals::detail::c
onnection_slot_pair>,struct std::multimap<class boost::any,struct boost::signals::detail::connection_slot_pair,class boost::function2<bool,class boost::any,class boost::any,int>,class std::allocator<struct boost::signals::detail::connection_slot_pai
r> >::_Kfn,class boost::function2<bool,class boost::any,class boost::any,int>,class std::allocator<struct boost::signals::detail::connection_slot_pair> >::iterator,class boost::signals::detail::slot_call_policies<struct boost::signals::detail::call_
bound0<void>::caller<class boost::function0<void,int> >,class std::_Tree<class boost::any,struct std::pair<class boost::any const ,struct boost::signals::detail::connection_slot_pair>,struct std::multimap<class boost::any,struct boost::signals::deta
il::connection_slot_pair,class boost::function2<bool,class boost::any,class boost::any,int>,class std::allocator<struct boost::signals::detail::connection_slot_pair> >::_Kfn,class boost::function2<bool,class boost::any,class boost::any,int>,class st
d::allocator<struct boost::signals::detail::connection_slot_pair> >::iterator>,struct boost::signals::detail::unusable,struct boost::signals::detail::unusable &,struct boost::signals::detail::unusable *,struct std::input_iterator_tag,struct boost::d
etail::default_argument>'' being compiled
Command line warning D4028 : minimal rebuild failure, reverting to normal build
Error executing cl.exe.
BoostTest.exe - 1 error(s), 1 warning(s)
Can anyone help me?
TIA.