Skip to content
Snippets Groups Projects
Verified Commit f122a34b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

C++20 modernization: use abbreviated function template syntax

parent b134dba3
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright © 2007-2023 Dynare Team * Copyright © 2007-2024 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -795,9 +795,8 @@ public: ...@@ -795,9 +795,8 @@ public:
/* Overwrites an existing instruction, given its number. /* Overwrites an existing instruction, given its number.
It is the responsibility of the caller to ensure that the new instruction It is the responsibility of the caller to ensure that the new instruction
occupies exactly as many bytes as the former one. */ occupies exactly as many bytes as the former one. */
template<typename B>
void void
overwriteInstruction(int instruction_number, const B& new_instruction) overwriteInstruction(int instruction_number, const auto& new_instruction)
{ {
seekp(instructions_positions.at(instruction_number)); seekp(instructions_positions.at(instruction_number));
*this << new_instruction; *this << new_instruction;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment