Fix indentation to match existing code style

This commit is contained in:
Sahil Sinha 2025-06-19 20:13:06 +05:30
parent c4b489e2f8
commit f8853db7de

View File

@ -244,22 +244,23 @@ template <typename Context> struct custom_scan_arg {
// A scan argument. Context is a template parameter for the compiled API where // A scan argument. Context is a template parameter for the compiled API where
// output can be unbuffered. // output can be unbuffered.
template <typename Context> class basic_scan_arg { template <typename Context> class basic_scan_arg {
private: private:
using scan_type = detail::scan_type; using scan_type = detail::scan_type;
scan_type type_; scan_type type_;
union { union {
int* int_value_; int* int_value_;
unsigned* uint_value_; unsigned* uint_value_;
long long* long_long_value_; long long* long_long_value_;
unsigned long long* ulong_long_value_; unsigned long long* ulong_long_value_;
double* double_value_; double* double_value_;
float* float_value_; float* float_value_;
std::string* string_; std::string* string_;
string_view* string_view_; string_view* string_view_;
detail::custom_scan_arg<Context> custom_; detail::custom_scan_arg<Context> custom_;
// TODO: more types // TODO: more types
}; };
template <typename T> template <typename T>
static void scan_custom_arg(void* arg, scan_parse_context& parse_ctx, static void scan_custom_arg(void* arg, scan_parse_context& parse_ctx,
Context& ctx) { Context& ctx) {