[mimetic-users] Compile time errors with clang when including mimetic/tree.h
Brought to you by:
tat0o
|
From: Rudolf L. <Rud...@gm...> - 2013-03-15 09:41:17
|
It appears that clang (Apple version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)) is particularly pedantic about completeness of definitions when declaring templates. Long story short, any file which includes mimetic/tree.h will fail to compile because the struct TreeNode<> contains a member a std::list<TreeNode<> >. The attached patch applies against mimetic-0.9.7.tar.gz as provided and allows to compile and successfully test libmimetic on the following platforms: - Ubuntu 12.10 with gcc-4.7 - MacOSX 10.8.2 with clang-421.0.60 (based on llvm 3.1svn) I hope it is useful to some ... PS: yes, the this->setDelimList() issue has been addressed by previously submitted patches, but it's still not part of a full release :( |