span: Make Span template deduction guides work in SFINAE context

Also add test to make sure this doesn't get broken in the future.

This was breaking vector<bool> serialization in multiprocess code because
template current deduction guides would make it appear like vector<bool> could
be converted to a span, but then the actual conversion to span would fail.
This commit is contained in:
Ryan Ofsky
2023-09-28 12:58:51 -04:00
parent 8062c3bdb9
commit 6d43aad742
3 changed files with 93 additions and 2 deletions

View File

@@ -144,6 +144,7 @@ BITCOIN_TESTS =\
test/sigopcount_tests.cpp \
test/skiplist_tests.cpp \
test/sock_tests.cpp \
test/span_tests.cpp \
test/streams_tests.cpp \
test/sync_tests.cpp \
test/system_tests.cpp \