Fix handling of types with deleted rvalue conversion to string (#1421)

This commit is contained in:
Victor Zverovich
2019-11-25 08:30:47 -08:00
parent 57cd3f72e9
commit 99b6e928d4
2 changed files with 12 additions and 1 deletions

View File

@@ -923,7 +923,7 @@ template <typename Context> struct arg_mapper {
// A type constant after applying arg_mapper<Context>.
template <typename T, typename Context>
using mapped_type_constant =
type_constant<decltype(arg_mapper<Context>().map(std::declval<T>())),
type_constant<decltype(arg_mapper<Context>().map(std::declval<const T&>())),
typename Context::char_type>;
enum { packed_arg_bits = 5 };