Skip to content

Commit

Permalink
Fix concept for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Jan 8, 2025
1 parent 25c1f0b commit 3d20dc5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions doc/crypt/concepts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ namespace boost::crypt::concepts {
#ifndef BOOST_CRYPT_HAS_CUDA
template <typename T>
concept file_system_path = std::is_convertible_v<T, std::string> ||
std::is_convertible_v<T, std::string_view> ||
std::is_same_v<std::remove_cvref<T>, std::filesystem::path>;
concept file_system_path =
std::is_convertible_v<T, std::string> ||
std::is_convertible_v<T, std::string_view> ||
std::is_convertible_v<T, const char*> ||
std::is_same_v<std::remove_cvref_t<T>, std::filesystem::path> ||
std::is_same_v<std::remove_cvref_t<T>, char*>;
#endif
Expand Down
9 changes: 6 additions & 3 deletions include/boost/crypt2/detail/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ namespace boost::crypt::concepts {
#ifndef BOOST_CRYPT_HAS_CUDA

template <typename T>
concept file_system_path = std::is_convertible_v<T, std::string> ||
std::is_convertible_v<T, std::string_view> ||
std::is_same_v<std::remove_cvref<T>, std::filesystem::path>;
concept file_system_path =
std::is_convertible_v<T, std::string> ||
std::is_convertible_v<T, std::string_view> ||
std::is_convertible_v<T, const char*> ||
std::is_same_v<std::remove_cvref_t<T>, std::filesystem::path> ||
std::is_same_v<std::remove_cvref_t<T>, char*>;

#endif

Expand Down

0 comments on commit 3d20dc5

Please sign in to comment.