Skip to content

Commit

Permalink
Typo in stderr message in serialize (libigl#1789)
Browse files Browse the repository at this point in the history
Something very minor.. but I was searching through the source where the `is not serializable: derive from igl::Serializable or spezialize the template function` message came from by searching for 'specialize'.
  • Loading branch information
tomlankhorst authored Jul 20, 2021
1 parent 7de3ff0 commit dda1972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/igl/serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -1245,13 +1245,13 @@ namespace igl
template <typename T>
inline void serialize(const T& obj,std::vector<char>& buffer)
{
std::cerr << typeid(obj).name() << " is not serializable: derive from igl::Serializable or spezialize the template function igl::serialization::serialize(const T& obj,std::vector<char>& buffer)" << std::endl;
std::cerr << typeid(obj).name() << " is not serializable: derive from igl::Serializable or specialize the template function igl::serialization::serialize(const T& obj,std::vector<char>& buffer)" << std::endl;
}

template <typename T>
inline void deserialize(T& obj,const std::vector<char>& buffer)
{
std::cerr << typeid(obj).name() << " is not deserializable: derive from igl::Serializable or spezialize the template function igl::serialization::deserialize(T& obj, const std::vector<char>& buffer)" << std::endl;
std::cerr << typeid(obj).name() << " is not deserializable: derive from igl::Serializable or specialize the template function igl::serialization::deserialize(T& obj, const std::vector<char>& buffer)" << std::endl;
}

// helper functions
Expand Down

0 comments on commit dda1972

Please sign in to comment.