[Soc-2012-dev] Sushi compile stops at ceres/libmv

Alexander Pinzon Fernandez apinzonf at gmail.com
Wed Jul 25 15:18:06 CEST 2012


This problem exist in the trunk

You can use original code

//Line 42
CERES_HASH_NAMESPACE_START

// Allow us to hash pointers as if they were int's
template<> struct hash< ::ceres::internal::ParameterBlock*> {
  size_t operator()(::ceres::internal::ParameterBlock* x) const {
    return reinterpret_cast<size_t>(x);
  }
};

CERES_HASH_NAMESPACE_END
////////////////////////////////////////////////////////////////////////////////////////

*//if not working try this*

//CERES_HASH_NAMESPACE_START
namespace std {
// Allow us to hash pointers as if they were int's
template<> struct hash< ::ceres::internal::ParameterBlock*> {
  size_t operator()(::ceres::internal::ParameterBlock* x) const {
    return reinterpret_cast<size_t>(x);
  }
};
}
//CERES_HASH_NAMESPACE_END




Att
Alexander Pinzon Fernandez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/soc-2012-dev/attachments/20120725/4af6b38e/attachment.htm 


More information about the Soc-2012-dev mailing list