Skip to content

Commit 212da75

Browse files
author
svorenova
committed
Making members of a test utility class non-const
Keeping the data members const deletes the default copy assignment operator and causes the existing unit tests crash for Microsoft Visual Studio.
1 parent d57fe53 commit 212da75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unit/testing-utils/require_parse_tree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ struct expected_instructiont
4646
java_bytecode_parse_treet::instructiont actual_instruction) const;
4747

4848
private:
49-
const irep_idt instruction_mnemoic;
50-
const std::vector<exprt> instruction_arguments;
49+
irep_idt instruction_mnemoic;
50+
std::vector<exprt> instruction_arguments;
5151
};
5252

5353
typedef std::vector<expected_instructiont> expected_instructionst;

0 commit comments

Comments
 (0)