Can you try throwing "template " (w/o quotes) in a few places on those lines? Maybe before "vector" (after "std::")... I'm guessing there's something ambiguous to the code parser, but it's not exactly matching the situations for similar error messages I found by googling...
Geoff the Medio wrote:I'm informed that "and" is a C++ keyword. Try replacing the instances of "and" with "and_condition" and let me know if it compiles?
Index: Condition.cpp
===================================================================
--- Condition.cpp (revision 4582)
+++ Condition.cpp (working copy)
@@ -57,9 +57,9 @@
for (std::vector<const Condition::ConditionBase*>::const_iterator it = input_conditions.begin();
it != input_conditions.end(); ++it)
{
- if (const Condition::And* and = dynamic_cast<const Condition::And*>(*it)) {
+ if (const Condition::And* and_condition = dynamic_cast<const Condition::And*>(*it)) {
std::vector<const Condition::ConditionBase*> flattened_operands =
- FlattenAndNestedConditions(and->Operands());
+ FlattenAndNestedConditions(and_condition->Operands());
std::copy(flattened_operands.begin(), flattened_operands.end(), std::back_inserter(retval));
} else {
retval.push_back(*it);
Relative to my procedural-programming (C) background, C++ syntax really makes my head hurt. I've been meaning to use FO as my care-enough-to-delve-into-C++ project for a while now. Perhaps I can meaningfully contribute at some point. I oughta have caught this one myself.