forked from bblanchon/ArduinoJson
Fix call of overloaded 'swap(...)' is ambiguous (fixes #1678)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include <ArduinoJson.h>
|
||||
|
||||
#include <catch.hpp>
|
||||
#include <utility>
|
||||
|
||||
using namespace std;
|
||||
|
||||
TEST_CASE("std::swap") {
|
||||
SECTION("DynamicJsonDocument*") {
|
||||
DynamicJsonDocument *p1, *p2;
|
||||
swap(p1, p2); // issue #1678
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user