Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
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
fmt
Commits
ca7e689e
Commit
ca7e689e
authored
Apr 22, 2013
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing include, try disable warnings on MSVC.
parent
6da2c530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
format.h
format.h
+6
-0
No files found.
format.h
View file @
ca7e689e
...
...
@@ -36,6 +36,7 @@
#include <cstddef>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <stdexcept>
#include <string>
#include <sstream>
...
...
@@ -99,6 +100,9 @@ class Array {
const
T
&
operator
[](
std
::
size_t
index
)
const
{
return
ptr_
[
index
];
}
};
#pragma warning(push)
#pragma warning(disable: 4996)
template
<
typename
T
,
std
::
size_t
SIZE
>
void
Array
<
T
,
SIZE
>::
Grow
(
std
::
size_t
size
)
{
capacity_
=
(
std
::
max
)(
size
,
capacity_
+
capacity_
/
2
);
...
...
@@ -118,6 +122,8 @@ void Array<T, SIZE>::append(const T *begin, const T *end) {
size_
+=
num_elements
;
}
#pragma warning(pop)
// Information about an integer type.
// IntTraits is not specialized for integer types smaller than int,
// since these are promoted to int.
...
...
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