Skip to content

Commit

Permalink
Solve deprecated warning issues with GCC-5
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Dec 21, 2016
1 parent 1871113 commit bda5afc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/roboptim/core/problem.hh
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ namespace roboptim
/// \brief Retrieve arguments scaling (deprecated version).
///
/// \deprecated Deprecated since version 3.1. Use argumentScaling() instead.
ROBOPTIM_CORE_DEPRECATED scales_t& argumentScales ();
ROBOPTIM_CORE_DEPRECATED scaling_t& argumentScales ();

/// \brief Retrieve arguments scaling (deprecated version).
///
/// \deprecated Deprecated since version 3.1. Use argumentScaling() instead.
ROBOPTIM_CORE_DEPRECATED const scales_t& argumentScales () const;
ROBOPTIM_CORE_DEPRECATED const scaling_t& argumentScales () const;

/// \brief Retrieve arguments names.
/// Arguments names define a name for each argument. This is particularly
Expand Down Expand Up @@ -309,7 +309,7 @@ namespace roboptim
/// \brief Retrieve constraints scaling vector (deprecated version).
///
/// \deprecated Deprecated since version 3.1. Use scalingVector() instead.
ROBOPTIM_CORE_DEPRECATED const scalesVect_t& scalesVector () const;
ROBOPTIM_CORE_DEPRECATED const scalingVect_t& scalesVector () const;

/// \brief Return the output size of the problem's constraints.
size_type constraintsOutputSize () const;
Expand Down
6 changes: 3 additions & 3 deletions include/roboptim/core/problem.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ namespace roboptim
}

template <typename T>
const typename Problem<T>::scalesVect_t&
const typename Problem<T>::scalingVect_t&
Problem<T>::scalesVector () const
{
return scalingVector ();
Expand Down Expand Up @@ -383,14 +383,14 @@ namespace roboptim
}

template <typename T>
typename Problem<T>::scales_t&
typename Problem<T>::scaling_t&
Problem<T>::argumentScales ()
{
return argumentScaling ();
}

template <typename T>
const typename Problem<T>::scales_t&
const typename Problem<T>::scaling_t&
Problem<T>::argumentScales () const
{
return argumentScaling ();
Expand Down

0 comments on commit bda5afc

Please sign in to comment.