Ignore:
Timestamp:
02/26/18 19:57:44 (7 years ago)
Author:
Maciej Komosinski
Message:

Introduced different function names in C++ instead of overloading (with the same number of arguments) so that javascript is able to discriminate them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/oper_fx.cpp

    r673 r743  
    5050        {
    5151                double _mn = 0, _mx = 1, _def = 0.5;
    52                 defined = p->getMinMax(i, _mn, _mx, _def);
     52                defined = p->getMinMaxDouble(i, _mn, _mx, _def);
    5353                if (defined == 1) _mx = _mn + 1.0;
    5454                if (_mx < _mn && defined == 3) _mn = _mx = _def; //only default was defined, let's assume min=max=default
     
    5959        {
    6060                paInt _mn = 0, _mx = 1, _def = 0;
    61                 defined = p->getMinMax(i, _mn, _mx, _def);
     61                defined = p->getMinMaxInt(i, _mn, _mx, _def);
    6262                if (defined == 1) _mx = _mn + 1;
    6363                if (_mx < _mn && defined == 3) _mn = _mx = _def; //only default was defined, let's assume min=max=default
Note: See TracChangeset for help on using the changeset viewer.