From 577340763c06807f06f7e65539cf2687678b5138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 14 May 2019 10:30:31 +0200 Subject: [PATCH] cpp: Include to show MSVC compilation error This is related to misuse of `std::swap`. We should not use explicit template arguments, because this disabled SFINAE and forces instantiation of all overloads. --- test/unittests/test_cpp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unittests/test_cpp.cpp b/test/unittests/test_cpp.cpp index 2a0afce..798caa9 100644 --- a/test/unittests/test_cpp.cpp +++ b/test/unittests/test_cpp.cpp @@ -2,6 +2,10 @@ // Copyright 2018-2019 The EVMC Authors. // Licensed under the Apache License, Version 2.0. +// The vector is not used here, but including it was causing compilation issues +// previously related to using explicit template argument (SFINAE disabled). +#include + #include "../../examples/example_host.h" #include "../../examples/example_vm.h"