Skip to content

Commit 773ef2a

Browse files
committed
Disambiguate move constructors and assignment
1 parent 1bfc644 commit 773ef2a

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

include/graphqlservice/GraphQLResponse.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ struct [[nodiscard]] IdType
7777

7878
// Conversion
7979
GRAPHQLRESPONSE_EXPORT IdType(ByteData&& data) noexcept;
80-
GRAPHQLRESPONSE_EXPORT IdType& operator=(ByteData&& data) noexcept;
81-
8280
GRAPHQLRESPONSE_EXPORT IdType(OpaqueString&& opaque) noexcept;
83-
GRAPHQLRESPONSE_EXPORT IdType& operator=(OpaqueString&& opaque) noexcept;
8481

8582
template <typename ValueType>
8683
[[nodiscard]] const ValueType& get() const;

src/GraphQLResponse.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,11 @@ IdType::IdType(ByteData&& data) noexcept
6868
{
6969
}
7070

71-
IdType& IdType::operator=(ByteData&& data) noexcept
72-
{
73-
_data = { std::move(data) };
74-
return *this;
75-
}
76-
7771
IdType::IdType(OpaqueString&& opaque) noexcept
7872
: _data { std::move(opaque) }
7973
{
8074
}
8175

82-
IdType& IdType::operator=(OpaqueString&& opaque) noexcept
83-
{
84-
_data = { std::move(opaque) };
85-
return *this;
86-
}
87-
8876
bool IdType::operator==(const IdType& rhs) const noexcept
8977
{
9078
if (_data.index() == rhs._data.index())

0 commit comments

Comments
 (0)