@@ -246,7 +246,7 @@ IC bool CProblemSolverAbstract::is_goal_reached(const _index_type& vertex_index)
246246TEMPLATE_SPECIALIZATION
247247IC bool CProblemSolverAbstract::is_goal_reached_impl (const _index_type& vertex_index) const
248248{
249- STATIC_CHECK (!reverse_search, This_function_cannot_be_used_in_the_REVERSE_search );
249+ static_assert (!reverse_search, " This function cannot be used in the REVERSE search. " );
250250 xr_vector<COperatorCondition>::const_iterator I = vertex_index.conditions ().begin ();
251251 xr_vector<COperatorCondition>::const_iterator E = vertex_index.conditions ().end ();
252252 xr_vector<COperatorCondition>::const_iterator i = target_state ().conditions ().begin ();
@@ -309,7 +309,7 @@ IC bool CProblemSolverAbstract::is_goal_reached_impl(const _index_type& vertex_i
309309TEMPLATE_SPECIALIZATION
310310IC bool CProblemSolverAbstract::is_goal_reached_impl (const _index_type& vertex_index, bool ) const
311311{
312- STATIC_CHECK (reverse_search, This_function_cannot_be_used_in_the_STRAIGHT_search );
312+ static_assert (reverse_search, " This function cannot be used in the STRAIGHT search. " );
313313 xr_vector<COperatorCondition>::const_iterator I = m_current_state.conditions ().begin ();
314314 xr_vector<COperatorCondition>::const_iterator E = m_current_state.conditions ().end ();
315315 xr_vector<COperatorCondition>::const_iterator i = vertex_index.conditions ().begin ();
@@ -377,7 +377,7 @@ TEMPLATE_SPECIALIZATION
377377IC typename CProblemSolverAbstract::_edge_value_type CProblemSolverAbstract::estimate_edge_weight_impl (
378378 const _index_type& condition) const
379379{
380- STATIC_CHECK (!reverse_search, This_function_cannot_be_used_in_the_REVERSE_search );
380+ static_assert (!reverse_search, " This function cannot be used in the REVERSE search. " );
381381 _edge_value_type result = 0 ;
382382 xr_vector<COperatorCondition>::const_iterator I = target_state ().conditions ().begin ();
383383 xr_vector<COperatorCondition>::const_iterator E = target_state ().conditions ().end ();
@@ -405,7 +405,7 @@ TEMPLATE_SPECIALIZATION
405405IC typename CProblemSolverAbstract::_edge_value_type CProblemSolverAbstract::estimate_edge_weight_impl (
406406 const _index_type& condition, bool ) const
407407{
408- STATIC_CHECK (reverse_search, This_function_cannot_be_used_in_the_STRAIGHT_search );
408+ static_assert (reverse_search, " This function cannot be used in the STRAIGHT search. " );
409409 _edge_value_type result = 0 ;
410410 xr_vector<COperatorCondition>::const_iterator I = current_state ().conditions ().begin ();
411411 xr_vector<COperatorCondition>::const_iterator E = current_state ().conditions ().end ();
0 commit comments