@李东岳 我找到如何输出endTime方法了,用this->owner().db().time().endTime().value()就可以。但是放在判断语句中出现如下错误:
note: ‘Foam::word’ is not derived from ‘const std::fpos<_StateT>’
if ((this->owner().db().time().timeName()) == (this->owner().db().time().endTime().value()))
/usr/include/c++/5/bits/stl_iterator.h:349:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator==(const reverse_iterator<_IteratorL>& __x,
^
/usr/include/c++/5/bits/stl_iterator.h:349:5: note: template argument deduction/substitution failed:
李老师能指点一下么?