Commit 4c5587f9 authored by incardon's avatar incardon
Browse files

Fixing master

parent 8104e4b4
......@@ -75,7 +75,7 @@ public:
reset();
#ifdef DEBUG
#ifdef SE_CLASS1
initialized = true;
#endif
}
......
......@@ -465,6 +465,25 @@ template<unsigned int dim ,typename T> class Point
return *this;
}
/*! \brief Fill the vector property with the evaluated expression
*
* \tparam check disable this method if T is a constant
*
* \param p_exp expression to evaluate
*
* \return itself
*
*/
template<typename T1, typename check = typename std::enable_if<std::is_const<T1>::value == false>::type> Point<dim,T> & operator=(const point_expression<const T1[dim]> & p_exp)
{
p_exp.init();
for (size_t i = 0; i < dim ; i++)
get(i) = p_exp.value(i);
return *this;
}
/*! \brief divide each component by an array
*
* \param ar Component wise division
......
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