Skip to content

Commit 93f4b77

Browse files
authored
Merge pull request #26 from f-michaut/compile-time-error-instead-of-linker-error
Fail at compile time instead of link time
2 parents 456234f + 4d99de5 commit 93f4b77

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

include/alpaca/alpaca.h

+1-6
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,6 @@ to_bytes(T &bytes, std::size_t &byte_index, const U &input) {
119119
T, 0>(input, bytes, byte_index);
120120
}
121121

122-
template <options O, typename T, typename U>
123-
typename std::enable_if<!std::is_aggregate_v<U> && std::is_class_v<U>,
124-
void>::type
125-
to_bytes(T &bytes, std::size_t &byte_index, const U &input);
126-
127122
template <options O, typename T, typename Container>
128123
void to_bytes_router(const T &input, Container &bytes,
129124
std::size_t &byte_index) {
@@ -544,4 +539,4 @@ T deserialize(Container &bytes, std::size_t size, std::error_code &error_code) {
544539
return object;
545540
}
546541

547-
} // namespace alpaca
542+
} // namespace alpaca

0 commit comments

Comments
 (0)