From f122a34bb82d2611e70d9139c1d66e26979963b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 26 Jan 2024 16:42:13 +0100
Subject: [PATCH] C++20 modernization: use abbreviated function template syntax

---
 src/Bytecode.hh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/Bytecode.hh b/src/Bytecode.hh
index 35df3f1c..1928f46c 100644
--- a/src/Bytecode.hh
+++ b/src/Bytecode.hh
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2007-2023 Dynare Team
+ * Copyright © 2007-2024 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -795,9 +795,8 @@ public:
   /* Overwrites an existing instruction, given its number.
      It is the responsibility of the caller to ensure that the new instruction
      occupies exactly as many bytes as the former one. */
-  template<typename B>
   void
-  overwriteInstruction(int instruction_number, const B& new_instruction)
+  overwriteInstruction(int instruction_number, const auto& new_instruction)
   {
     seekp(instructions_positions.at(instruction_number));
     *this << new_instruction;
-- 
GitLab