Skip to content

Commit

Permalink
Disable LOB(const basic_string<T> &) constructor for invalid T
Browse files Browse the repository at this point in the history
This fixes compilation against libcxx 19, which removed the
specialization for std::char_traits<unsigned char>.
See https://reviews.llvm.org/D138307 and
https://reviews.llvm.org/D157058.

Closes #4722.
  • Loading branch information
2xsaiko committed Oct 4, 2024
1 parent af3b3b1 commit 2c1c901
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Data/include/Poco/Data/LOB.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ class LOB
{
}

LOB(const std::basic_string<T>& content):
template<typename Content = std::basic_string<T>,
typename = std::enable_if_t<std::is_same_v<Content, std::basic_string<T>>>>
LOB(const Content& content):
_pContent(new std::vector<T>(content.begin(), content.end()))
/// Creates a LOB from a string.
{
Expand Down

0 comments on commit 2c1c901

Please sign in to comment.