Changeset 1046


Ignore:
Timestamp:
12/11/20 21:26:48 (5 weeks ago)
Author:
Maciej Komosinski
Message:

Fixed a declaration of a static array with a non-constant size in C++

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/similarity/measure-distribution.cpp

    r1044 r1046  
    99#include <iostream>
    1010
    11 #define PI 3.1415926535
    12 
    1311#define FIELDSTRUCT SimilMeasureDistribution
    1412
     
    1816                { "simil_bin_num", 0, 0, "Number of bins", "d 1 1000 128", FIELD(bin_num), "", },
    1917                { "simil_samples_num", 0, 0, "Number of samples", "d 1 1048576 1048576", FIELD(samples_num), "", },
    20                 { "evaluateDistance", 0, PARAM_DONTSAVE | PARAM_USERHIDDEN, "evaluate model dissimilarity", "p f(oGeno,oGeno)", PROCEDURE(p_evaldistance), "Calculates dissimilarity between two models created from Geno objects.", },
     18                { "evaluateDistance", 0, PARAM_DONTSAVE | PARAM_USERHIDDEN, "Evaluate model dissimilarity", "p f(oGeno,oGeno)", PROCEDURE(p_evaldistance), "Calculates dissimilarity between two models created from Geno objects.", },
    2119                { 0, },
    2220};
     
    8886
    8987        //Create histogram
    90         float hist[bin_num] = {};       
     88        vector<float> hist(bin_num);
    9189        int ind = 0;
    9290
Note: See TracChangeset for help on using the changeset viewer.