c++0x compiler fails to compile boost.spirit example mini_xml2.cpp (and no errors from not c++0x compiler)
$> c++ -std=c++0x mini_xml2.cpp (errors)
$> c++ mini_xml2.cpp (no errors)
The error log is placed here. I suspect that problem is related to nonterminal attributes (lines 159-163), but I could be wrong.
- c++ version (Ubuntu / Linaro 4.8.1-10ubuntu9) 4.8.1
- Boost version 1.55
I've created issue at the boost tracker, but have no answer.
Does anybody have the same errors?
Solved: I found a solution here.
// Add this macro
#define BOOST_SPIRIT_USE_PHOENIX_V3
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…