Add .travis.yml

This commit is contained in:
Jonathan Müller 2017-04-20 12:17:00 +02:00
commit 1420abc81b
14 changed files with 82 additions and 13 deletions

View file

@ -138,7 +138,7 @@ unsigned test_visit(const cppast::cpp_file& file, Func f, bool check_code = true
template <class Entity>
unsigned count_children(const Entity& cont)
{
return std::distance(cont.begin(), cont.end());
return unsigned(std::distance(cont.begin(), cont.end()));
}
// ignores templated scopes