Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
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
rapidjson
Commits
143641c7
Commit
143641c7
authored
Sep 27, 2017
by
KaitoHH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suppress C4512, C4702 warning
parent
79d9c71f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
stream.h
include/rapidjson/stream.h
+16
-1
No files found.
include/rapidjson/stream.h
View file @
143641c7
...
...
@@ -109,6 +109,12 @@ inline void PutN(Stream& stream, Ch c, size_t n) {
\tmessage to the origin stream.
\note implements Stream concept
*/
#if defined(_MSC_VER) && _MSC_VER <= 1700
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF
(
4702
)
// disable unreachable code
#endif
template
<
typename
InputStream
,
typename
Encoding
>
class
GenericStreamWrapper
{
public
:
...
...
@@ -135,7 +141,7 @@ public:
Ch
*
PutBegin
()
{
return
is_
.
PutBegin
();
}
void
Put
(
Ch
ch
)
{
is_
.
Put
(
ch
);
}
void
Flush
()
{
is_
.
Flush
();
}
size_t
PutEnd
(
Ch
*
ch
)
{
return
is_
.
PutEnd
(
ch
);
}
size_t
PutEnd
(
Ch
*
ch
)
{
return
is_
.
PutEnd
(
ch
);
}
// wrapper for MemoryStream
const
Ch
*
Peek4
()
const
{
return
is_
.
Peek4
();
}
...
...
@@ -146,8 +152,17 @@ public:
private
:
InputStream
&
is_
;
// elimante vs2010-2013 C4512 warning by
// prohibiting copy constructor & assignment operator.
GenericStreamWrapper
&
operator
=
(
const
GenericStreamWrapper
&
);
GenericStreamWrapper
(
const
GenericStreamWrapper
&
);
};
#if defined(_MSC_VER) && _MSC_VER <= 1700
RAPIDJSON_DIAG_POP
#endif
///////////////////////////////////////////////////////////////////////////////
// StringStream
...
...
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