Commit 07274cc8 authored by bianucci's avatar bianucci

Fix operator== and operator!= to be declared as const methods

parent 24490009
......@@ -351,7 +351,7 @@ template<unsigned int dim ,typename T> class Point
* \return true if two points match
*
*/
__device__ __host__ inline bool operator==(const Point<dim,T> & p)
__device__ __host__ inline bool operator==(const Point<dim,T> & p) const
{
for (size_t i = 0 ; i < dim ; i++)
{
......@@ -369,7 +369,7 @@ template<unsigned int dim ,typename T> class Point
* \return true if two points match
*
*/
__device__ __host__ inline bool operator!=(const Point<dim,T> & p)
__device__ __host__ inline bool operator!=(const Point<dim,T> & p) const
{
return !this->operator==(p);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment