mercredi 21 novembre 2018

Swig throwing error when trying to parse c++ file

I am not sure about the cause for this error. I tried googling but couldn't find much. I think it has something to do with the typedef declaration.

 typedef std::int32_t CellType;
 typedef std::array<std::int32_t, N> IndexType;
 static constexpr auto kDims = std::tuple_size< IndexType >::value;

The error is in 3rd line in the code above: Error: Syntax error in input(3).

P.S. this file is part of an external library. So, rewriting the module is not possible for me. Similar errors are showing at multiple locations in the file.

Aucun commentaire:

Enregistrer un commentaire