#ifndef _CPDOCCORE_HASH_H_ #define _CPDOCCORE_HASH_H_ #include "../../include/cpdoccore/CPOptional.h" namespace boost { template< class T > struct hash; } namespace cpdoccore { template std::size_t hash_value(typename optional::Type const & val) { if (val) { boost::hash(*val); } else return 0; } } #endif