Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
makuke1234 committed Mar 14, 2022
1 parent 93b6694 commit 390c53f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Serializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
#include <istream>

#if __cplusplus > 201703L
#include <concepts>

#include <concepts>
namespace slzr
{
template<typename T, typename U>
concept HelperConcept = requires (T a, std::size_t b)
{
{ a.get(b) } -> std::convertible_to<std::pair<const void *, std::size_t> >;
{ a.put(b) } -> std::convertible_to<std::pair<void *, std::size_t> >;
} && std::is_constructible_v<T, U &>;
#else
#define HelperConcept typename
}

#endif

namespace slzr
Expand Down

0 comments on commit 390c53f

Please # to comment.