IDE:VC++6.0

Run-time lib:Debug Multi-threaded DLL

The following is two code segment.The first is with ICEs and the second is without ICEs.

Example1:(With Internal Compiler Error)

#include <iostream>
#include <string>
#include <boost\dynamic_bitset.hpp>

using std::cout;
using std::endl;

boost::dynamic_bitset<char> g_bs;//!!!!!!!!!!!!!!!!!!!!!!!!Here
void SetBitSet(const std::string & str)
{
 boost::dynamic_bitset<char> bs(str); 
// g_bs = bs;
}

int main()
{
 return 0;
}

Example 2:(Without Internal Compiler Error)

#include <iostream>
#include <string>
#include <boost\dynamic_bitset.hpp>

using std::cout;
using std::endl;

//boost::dynamic_bitset<char> g_bs;//!!!!!!!!!!!!!!!!Here

void SetBitSet(const std::string & str)
{
 boost::dynamic_bitset<char> bs(str); 
// g_bs = bs;
}

int main()
{
     return 0;
}


On Fri, 18 Apr 2003 9:20:59 +0800, "jacon wang"
<< jkwang@mail.ustc.edu.cn>  wrote:
 
>> hi,
>>     I want to know if boost::dynamic_bitset supports multi-thread.
>> Now,when I use boost::dynamic_bitset with VC++ 6.0 and use run-time
>> libarary multi-threaded dll,It will cause a INTERNAL COMPILER ERROR(1001).
>> So I'm confused.Could anyone give me some advice?
 
ICEs (Internal compiler errors) are problems in the compiler (a.k.a.
bugs) detected by the compiler itself. You can think of them as sorts
of asserts in the compiler code. So, they should never happen. Please,
try to post a complete (short) example to reproduce the problem and
I'll see if there's a way to avoid it.
 
 
Genny.
 
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost