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

James Wrigley jwrigley72 at gmail.com
Mon Jul 30 02:58:07 CEST 2012


@ Alex Fernandez, thank you for the patch, but where should I apply the changes?

Thanks, JamesNZ

On 7/30/12, Alexander Pinzon Fernandez <apinzonf at gmail.com> wrote:
> 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
>


More information about the Soc-2012-dev mailing list