mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-09 04:30:31 -04:00
Fix indentation to match existing code style
This commit is contained in:
parent
c4b489e2f8
commit
f8853db7de
33
test/scan.h
33
test/scan.h
@ -244,22 +244,23 @@ template <typename Context> struct custom_scan_arg {
|
||||
|
||||
// A scan argument. Context is a template parameter for the compiled API where
|
||||
// output can be unbuffered.
|
||||
template <typename Context> class basic_scan_arg {
|
||||
private:
|
||||
using scan_type = detail::scan_type;
|
||||
scan_type type_;
|
||||
union {
|
||||
int* int_value_;
|
||||
unsigned* uint_value_;
|
||||
long long* long_long_value_;
|
||||
unsigned long long* ulong_long_value_;
|
||||
double* double_value_;
|
||||
float* float_value_;
|
||||
std::string* string_;
|
||||
string_view* string_view_;
|
||||
detail::custom_scan_arg<Context> custom_;
|
||||
// TODO: more types
|
||||
};
|
||||
template <typename Context> class basic_scan_arg {
|
||||
private:
|
||||
using scan_type = detail::scan_type;
|
||||
scan_type type_;
|
||||
union {
|
||||
int* int_value_;
|
||||
unsigned* uint_value_;
|
||||
long long* long_long_value_;
|
||||
unsigned long long* ulong_long_value_;
|
||||
double* double_value_;
|
||||
float* float_value_;
|
||||
std::string* string_;
|
||||
string_view* string_view_;
|
||||
detail::custom_scan_arg<Context> custom_;
|
||||
// TODO: more types
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
static void scan_custom_arg(void* arg, scan_parse_context& parse_ctx,
|
||||
Context& ctx) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user