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
8af9bf1d
Commit
8af9bf1d
authored
Nov 02, 2015
by
vitaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FMT_SECURE_SCL instead of _SECURE_SCL
parent
de3cea7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
format.h
format.h
+8
-6
No files found.
format.h
View file @
8af9bf1d
...
...
@@ -48,11 +48,13 @@
# include <sstream>
#endif
#ifndef _SECURE_SCL
# define _SECURE_SCL 0
#ifdef _SECURE_SCL
# define FMT_SECURE_SCL _SECURE_SCL
#else
# define FMT_SECURE_SCL 0
#endif
#if _SECURE_SCL
#if
FMT
_SECURE_SCL
# include <iterator>
#endif
...
...
@@ -394,7 +396,7 @@ namespace internal {
// to avoid dynamic memory allocation.
enum
{
INLINE_BUFFER_SIZE
=
500
};
#if _SECURE_SCL
#if
FMT
_SECURE_SCL
// Use checked iterator to avoid warnings on MSVC.
template
<
typename
T
>
inline
stdext
::
checked_array_iterator
<
T
*>
make_ptr
(
T
*
ptr
,
std
::
size_t
size
)
{
...
...
@@ -625,7 +627,7 @@ inline int isnotanumber(long double x) {
template
<
typename
Char
>
class
BasicCharTraits
{
public:
#if _SECURE_SCL
#if
FMT
_SECURE_SCL
typedef
stdext
::
checked_array_iterator
<
Char
*>
CharPtr
;
#else
typedef
Char
*
CharPtr
;
...
...
@@ -1910,7 +1912,7 @@ class BasicWriter {
typedef
typename
internal
::
CharTraits
<
Char
>::
CharPtr
CharPtr
;
#if _SECURE_SCL
#if
FMT
_SECURE_SCL
// Returns pointer value.
static
Char
*
get
(
CharPtr
p
)
{
return
p
.
base
();
}
#else
...
...
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