Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
270c08b2
Commit
270c08b2
authored
Mar 02, 2017
by
Gabi Melman
Committed by
GitHub
Mar 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #377 from tekezo/master
Use double-braces in std::array initialization.
parents
5585299b
a4714a65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
include/spdlog/details/pattern_formatter_impl.h
include/spdlog/details/pattern_formatter_impl.h
+4
-4
No files found.
include/spdlog/details/pattern_formatter_impl.h
View file @
270c08b2
...
...
@@ -82,7 +82,7 @@ static int to12h(const tm& t)
using
days_array
=
std
::
array
<
std
::
string
,
7
>
;
static
const
days_array
&
days
()
{
static
const
days_array
arr
{
"Sun"
,
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
};
static
const
days_array
arr
{
{
"Sun"
,
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
}
};
return
arr
;
}
class
a_formatter
:
public
flag_formatter
...
...
@@ -96,7 +96,7 @@ class a_formatter:public flag_formatter
//Full weekday name
static
const
days_array
&
full_days
()
{
static
const
days_array
arr
{
"Sunday"
,
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
"Friday"
,
"Saturday"
};
static
const
days_array
arr
{
{
"Sunday"
,
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
"Friday"
,
"Saturday"
}
};
return
arr
;
}
class
A_formatter
:
public
flag_formatter
...
...
@@ -111,7 +111,7 @@ class A_formatter:public flag_formatter
using
months_array
=
std
::
array
<
std
::
string
,
12
>
;
static
const
months_array
&
months
()
{
static
const
months_array
arr
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"June"
,
"July"
,
"Aug"
,
"Sept"
,
"Oct"
,
"Nov"
,
"Dec"
};
static
const
months_array
arr
{
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"June"
,
"July"
,
"Aug"
,
"Sept"
,
"Oct"
,
"Nov"
,
"Dec"
}
};
return
arr
;
}
class
b_formatter
:
public
flag_formatter
...
...
@@ -125,7 +125,7 @@ class b_formatter:public flag_formatter
//Full month name
static
const
months_array
&
full_months
()
{
static
const
months_array
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
;
}
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