|
libpqxx
The C++ client library for PostgreSQL
|
String traits for a forbidden type conversion. More...
#include <strconv.hxx>
Static Public Member Functions | |
| static std::string_view | to_buf (std::span< char >, TYPE const &, ctx={})=delete |
| static TYPE | from_string (std::string_view, ctx={})=delete |
| static std::size_t | size_buffer (TYPE const &) noexcept=delete |
String traits for a forbidden type conversion.
If you have a C++ type for which you explicitly wish to forbid SQL conversion, you can derive a pqxx::string_traits specialisation for that type from this struct. Any attempt to convert the type will then fail to build, and produce an error referring to this type. It may help debug build errors.
|
staticdelete |
|
staticdeletenoexcept |
|
staticdelete |