Ignore:
Timestamp:
04/16/21 15:55:34 (3 years ago)
Author:
Maciej Komosinski
Message:

Used std::min(), std::max() explicitly to avoid compiler confusion. Used std::size() explicitly instead of the equivalent macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/paramobj.cpp

    r1051 r1130  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2021  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
    55#include <frams/param/paramobj.h>
    66#include <frams/util/extvalue.h>
    7 #include <common/nonstd_stl.h>
     7#include <algorithm>
    88       
    99static const char* maybedup(bool dup, const char* src)
     
    232232        const ExtValue *s = &src.fields[0];
    233233        ExtValue *d = &fields[0];
    234         int n = min(numfields, src.numfields);
     234        int n = std::min(numfields, src.numfields);
    235235        for (int i = 0; i < n; i++, d++, s++)
    236236                *d = *s;
Note: See TracChangeset for help on using the changeset viewer.