Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
ef665e95
Commit
ef665e95
authored
Feb 16, 2017
by
Jean-Michaël Celerier
Committed by
GitHub
Feb 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't deduce return types for days / months
Required for C++11 support
parent
06b8193a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
pattern_formatter_impl.h
include/spdlog/details/pattern_formatter_impl.h
+10
-8
No files found.
include/spdlog/details/pattern_formatter_impl.h
View file @
ef665e95
...
@@ -79,8 +79,9 @@ static int to12h(const tm& t)
...
@@ -79,8 +79,9 @@ static int to12h(const tm& t)
}
}
//Abbreviated weekday name
//Abbreviated weekday name
static
const
auto
&
days
()
{
using
days_array
=
std
::
array
<
std
::
string
,
7
>
;
static
const
std
::
array
<
std
::
string
,
7
>
arr
{
"Sun"
,
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
};
static
const
days_array
&
days
()
{
static
const
days_array
arr
{
"Sun"
,
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
};
return
arr
;
return
arr
;
}
}
class
a_formatter
:
public
flag_formatter
class
a_formatter
:
public
flag_formatter
...
@@ -92,8 +93,8 @@ class a_formatter:public flag_formatter
...
@@ -92,8 +93,8 @@ class a_formatter:public flag_formatter
};
};
//Full weekday name
//Full weekday name
static
const
auto
&
full_days
()
{
static
const
days_array
&
full_days
()
{
static
const
std
::
array
<
std
::
string
,
7
>
arr
{
"Sunday"
,
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
"Friday"
,
"Saturday"
};
static
const
days_array
arr
{
"Sunday"
,
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
"Friday"
,
"Saturday"
};
return
arr
;
return
arr
;
}
}
class
A_formatter
:
public
flag_formatter
class
A_formatter
:
public
flag_formatter
...
@@ -105,8 +106,9 @@ class A_formatter:public flag_formatter
...
@@ -105,8 +106,9 @@ class A_formatter:public flag_formatter
};
};
//Abbreviated month
//Abbreviated month
static
const
auto
&
months
()
{
using
months_array
=
std
::
array
<
std
::
string
,
12
>
;
static
const
std
::
array
<
std
::
string
,
12
>
arr
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"June"
,
"July"
,
"Aug"
,
"Sept"
,
"Oct"
,
"Nov"
,
"Dec"
};
static
const
months_array
&
months
()
{
static
const
months_array
arr
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"June"
,
"July"
,
"Aug"
,
"Sept"
,
"Oct"
,
"Nov"
,
"Dec"
};
return
arr
;
return
arr
;
}
}
class
b_formatter
:
public
flag_formatter
class
b_formatter
:
public
flag_formatter
...
@@ -118,8 +120,8 @@ class b_formatter:public flag_formatter
...
@@ -118,8 +120,8 @@ class b_formatter:public flag_formatter
};
};
//Full month name
//Full month name
static
const
auto
&
full_months
()
{
static
const
months_array
&
full_months
()
{
static
const
std
::
array
<
std
::
string
,
12
>
arr
{
"January"
,
"February"
,
"March"
,
"April"
,
"May"
,
"June"
,
"July"
,
"August"
,
"September"
,
"October"
,
"November"
,
"December"
};
static
const
months_array
arr
{
"January"
,
"February"
,
"March"
,
"April"
,
"May"
,
"June"
,
"July"
,
"August"
,
"September"
,
"October"
,
"November"
,
"December"
};
return
arr
;
return
arr
;
}
}
class
B_formatter
:
public
flag_formatter
class
B_formatter
:
public
flag_formatter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment