|
libpqxx 7.8.1
|
You cannot convert a signed char to/from SQL.
More...
#include <strconv.hxx>

Additional Inherited Members | |
Static Public Member Functions inherited from pqxx::forbidden_conversion< signed char > | |
| static zview | to_buf (char *, char *, signed char const &) |
| static char * | into_buf (char *, char *, signed char const &) |
| static signed char | from_string (std::string_view) |
| static std::size_t | size_buffer (signed char const &) noexcept |
Static Public Attributes inherited from pqxx::forbidden_conversion< signed char > | |
| static constexpr bool | converts_to_string |
| static constexpr bool | converts_from_string |
You cannot convert a signed char to/from SQL.
Converting this type may seem simple enough, but it's ambiguous: Did you mean the value as a small integer? Or were you thinking of a single-character string (and if so, in what encoding)? Or perhaps it's just a raw byte value?
If you meant it as an integer, use an appropriate integral type such as int or short etc.
If you wanted a single-character string, use std::string_view (or a similar type such as std::string).
Or if you had a raw byte in mind, try std::basic_string_view<std::byte> instead.