Skip to content

Commit 9c40086

Browse files
committed
JSBSim plugin would like to have CPP 20
1 parent 653339a commit 9c40086

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# requirements to cmake version
99

1010
CMAKE_MINIMUM_REQUIRED(VERSION 3.1...3.10)
11-
set (CMAKE_CXX_STANDARD 17)
11+
set (CMAKE_CXX_STANDARD 20)
1212
set (CXX_STANDARD_REQUIRED ON)
1313
set(CMAKE_CXX_EXTENSIONS OFF)
1414

src/OpenCOVER/plugins/hlrs/JSBSim/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using(JSBSIM)
22
using(VRML)
33
USING(PROJ)
4-
set (CMAKE_CXX_STANDARD 17)
4+
set (CMAKE_CXX_STANDARD 20)
55

66
SET(HEADERS
77
JSBSim.h

src/kernel/util/Triangulator.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ typedef class _point_t
6060
this->x = 0.0;
6161
this->y = 0.0;
6262
}
63-
double LENGTH()
63+
double LENGTH() const
6464
{
6565
return (sqrt(x * x + y * y));
6666
}
67-
bool operator>(const _point_t &v1)
67+
bool operator>(const _point_t &v1) const
6868
{
6969
if (y > v1.y + C_EPS)
7070
return true;
@@ -76,19 +76,19 @@ typedef class _point_t
7676
{
7777
return _point_t(v0.x - v1.x, v0.y - v1.y);
7878
}
79-
bool operator==(const _point_t &v1)
79+
bool operator==(const _point_t &v1) const
8080
{
8181
return (FP_EQUAL(y, v1.y) && FP_EQUAL(x, v1.x));
8282
}
83-
bool operator>=(const _point_t &v1)
83+
bool operator>=(const _point_t &v1) const
8484
{
8585
if (y > v1.y + C_EPS)
8686
return true;
8787
if (y < v1.y - C_EPS)
8888
return false;
8989
return (x >= v1.x);
9090
}
91-
bool operator<(const _point_t &v1)
91+
bool operator<(const _point_t &v1) const
9292
{
9393
if (y < v1.y - C_EPS)
9494
return true;

0 commit comments

Comments
 (0)