mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-29 02:07:32 +02:00
Fix call of overloaded 'swap(...)' is ambiguous
(fixes #1678)
This commit is contained in:
13
extras/tests/JsonDocument/swap.cpp
Normal file
13
extras/tests/JsonDocument/swap.cpp
Normal file
@ -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