Changeset 69:115bb81d02a2 in rrlib_geometry


Ignore:
Timestamp:
01.08.2014 12:07:48 (5 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Children:
70:d3d17994230f, 73:62ef2029db46
Phase:
public
Message:

Fix for clang: replaced array of runtime-determined size by std::vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • curves/tSplineCurve.hpp

    r62 r69  
    426426  size_t number_of_control_points; 
    427427  stream >> number_of_control_points; 
    428   tPoint<Tdimension, TElement> control_points[number_of_control_points]; 
     428  std::vector<tPoint<Tdimension, TElement>> control_points(number_of_control_points); 
    429429  for (size_t i = 0; i < number_of_control_points; ++i) 
    430430  { 
    431431    stream >> control_points[i]; 
    432432  } 
    433   spline.SetControlPoints(control_points, control_points + number_of_control_points); 
     433  spline.SetControlPoints(control_points.begin(), control_points.end()); 
    434434  return stream; 
    435435} 
Note: See TracChangeset for help on using the changeset viewer.