get_types -> encode_types

This commit is contained in:
Victor Zverovich 2019-06-11 18:50:14 -07:00
parent d7d2bebf99
commit 39f522a13a

View File

@ -989,12 +989,12 @@ class locale_ref {
template <typename Locale> Locale get() const; template <typename Locale> Locale get() const;
}; };
template <typename> constexpr unsigned long long get_types() { return 0; } template <typename> constexpr unsigned long long encode_types() { return 0; }
template <typename Context, typename Arg, typename... Args> template <typename Context, typename Arg, typename... Args>
constexpr unsigned long long get_types() { constexpr unsigned long long encode_types() {
return mapped_type_constant<Arg, Context>::value | return mapped_type_constant<Arg, Context>::value |
(get_types<Context, Args...>() << 4); (encode_types<Context, Args...>() << 4);
} }
template <typename Context, typename T> template <typename Context, typename T>
@ -1095,7 +1095,7 @@ template <typename Context, typename... Args> class format_arg_store {
public: public:
static constexpr unsigned long long TYPES = static constexpr unsigned long long TYPES =
is_packed ? internal::get_types<Context, Args...>() is_packed ? internal::encode_types<Context, Args...>()
: internal::is_unpacked_bit | num_args; : internal::is_unpacked_bit | num_args;
format_arg_store(const Args&... args) format_arg_store(const Args&... args)