Branch: refs/heads/master
  Home:   https://github.com/synfig/synfig
  Commit: 5f3563a83884e867f1d9716dfa5751d50b074bad
      
https://github.com/synfig/synfig/commit/5f3563a83884e867f1d9716dfa5751d50b074bad
  Author: ice0 <konop...@gmail.com>
  Date:   2022-06-19 (Sun, 19 Jun 2022)

  Changed paths:
    M ETL/ETL/_angle.h
    M ETL/ETL/_bezier.h
    M ETL/ETL/_calculus.h
    M ETL/ETL/_curve_func.h
    M ETL/ETL/_hermite.h
    M synfig-core/src/synfig/real.h
    M synfig-core/src/synfig/valuenodes/valuenode_animatedinterface.cpp
    M synfig-core/src/synfig/vector.h

  Log Message:
  -----------
  refactor: removed deprecated `std::unary_function` and `std::binary_function` 
classes (#2696)

`std::unary_function` and `std::binary_function` just need to define 3 types:

`unary_function` provides only two types - argument_type and result_type
- defined by the template parameters.
(https://en.cppreference.com/w/cpp/utility/functional/unary_function).

`binary_function` provides only three types - first_argument_type,
second_argument_type and result_type - defined by the template parameters.
(https://en.cppreference.com/w/cpp/utility/functional/binary_function)

Based on this code:
```
class bezier_base<synfig::Vector,float> : public 
std::unary_function<float,synfig::Vector>
{
public:
        typedef synfig::Vector value_type;
        typedef float time_type;
```

we can assume what:
```
using argument_type = time_type;
using result_type = value_type;
```

So I just replaced `argument_type` and `result_type`
with the corresponding types.




_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to