Fix GCC 13 warning about overloading that hides virtual methods of base class

mr#2134
Sébastien Villemot 2023-05-09 21:14:50 +02:00
parent aeff2bf48d
commit 1b02026d1c
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/*
* Copyright © 2004 Ondra Kamenik
* Copyright © 2019 Dynare Team
* Copyright © 2019-2023 Dynare Team
*
* This file is part of Dynare.
*
@ -256,6 +256,11 @@ public:
UTensor &operator=(const UTensor &) = delete;
UTensor &operator=(UTensor &&) = delete;
// Ensure that the methods of the parent class are not overloaded
using Tensor::increment;
using Tensor::decrement;
using Tensor::getOffset;
static void increment(IntSequence &v, int nv);
static void decrement(IntSequence &v, int nv);
static void increment(IntSequence &v, const IntSequence &nvmx);
@ -292,6 +297,10 @@ public:
FTensor &operator=(const FTensor &) = delete;
FTensor &operator=(FTensor &&) = delete;
// Ensure that the methods of the parent class are not overloaded
using Tensor::decrement;
using Tensor::getOffset;
static void decrement(IntSequence &v, int nv);
static int
getOffset(const IntSequence &v, int nv)