Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are all these errors in converting bool to Am_Value?

bool converting errors
0
Posted

What are all these errors in converting bool to Am_Value?

0

The errors look like this: ‘typecast’ cannot convert from ‘Const class Am_value’ to ‘bool’ The issue has to do with compiler support for the new C++ keyword “bool”. It turns out that this can be a major problem when porting to new systems, including VC++ 5. We have accomodated both compilers that support it and those that do not. What I see happening is there is a mismatch in the Amulet headers and your compiler, meaning that bool is supported Check to see how your compiler turns on and off support for bool. Or you can find a way to “force” the header files to accept, add a line in amulet.h if you need to, either #define NEED_BOOL 1 or #undef NEED_BOOL depending on whether your compiler supports bool or not. That should make turn on or off the Am_Value to bool and other conversions.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123