1243 Commits

Author SHA1 Message Date
Milo Yip
74f0673dad Merge branch 'master' into schema 2015-09-01 09:32:29 +08:00
Milo Yip
3ede21c356 Merge pull request #409 from pah/fix/biginteger-self-assign
BigInteger: guard against self-assignment
2015-08-14 10:07:18 +08:00
Philipp A. Hartmann
afbc0406f0 BigInteger: guard against self-assignment
Related-to: #404.
Suggested-by: @cosinekitty
2015-08-13 23:07:30 +02:00
Milo Yip
3cf7228f46 Port documentation fix from #407 2015-08-13 10:16:19 +08:00
Milo Yip
3517aca39a Merge pull request #407 from fcharlie/master
doc: 自定义流应当使用 ParseStream 而不是 Parse
2015-08-13 10:13:30 +08:00
Force.Charlie-I
ffd389befc 自定义流应当使用 ParseStream 而不是 Parse 2015-08-12 18:38:13 +08:00
Milo Yip
bc4551b5b0 Merge pull request #405 from ziyangli/patch-1
added missing fields of CMakeList.txt
2015-08-10 18:48:51 +08:00
Ziyang LI
4569752903 added missing fields of CMakeList.txt
this fixed cmake error for me
2015-08-10 18:11:25 +08:00
Milo Yip
8498c785a6 Merge pull request #404 from blackball/master
Implement = operator for BigInteger
2015-08-07 17:53:35 +08:00
blackball
c0854473e9 Implement = operator for BigInteger
There's a copy constructor, but no '=' operator implemented. This is dangerous.
2015-08-07 10:04:45 +02:00
Milo Yip
c583119b20 Merge pull request #401 from ivankravets/patch-2
Fix include location
2015-08-04 09:46:05 +08:00
Ivan Kravets
720d1688f1 Fix include location 2015-08-03 16:30:37 +03:00
Milo Yip
315a8ea368 Merge pull request #400 from ivankravets/patch-1
@PlatformIO Library Registry manifest file
2015-08-02 18:59:01 +08:00
Ivan Kravets
b49858a408 Add examples for @PlatformIO Library Registry 2015-08-01 13:10:26 +03:00
Ivan Kravets
2a18d306b8 @PlatformIO Library Registry manifest file
* This library in Web Registry: http://platformio.org/#!/lib/show/438/RapidJSON
* Specification: [PlatformIO Library Manager](http://docs.platformio.org/en/latest/librarymanager/index.html)
* Integration: [IDE Integration](http://docs.platformio.org/en/latest/ide.html)
2015-08-01 13:05:28 +03:00
Milo Yip
f07ca0748f Merge pull request #397 from blackball/master
Fix the error when compiled using vs2013
2015-07-25 10:45:32 +08:00
blackball
fc50f103a6 Fix the error when compiled using vs2013
The error message for the original codes is: unary minus operator applied to unsigned type, result still unsigned. Added static casting to eliminate this message.
2015-07-24 16:19:08 +02:00
Milo Yip
1eaf180cda Merge pull request #394 from nightmouse/master
Warning cleanup on osx10.10/clang, enable -Werror
2015-07-22 09:19:51 +08:00
Justin Scheiber
e527a4fe5e adding -Wno-missing-field-initializers to keep the googletest source from erroring out on a warning 2015-07-21 17:42:28 -06:00
scheiber
73cf03c2bf use google's servers for googletest 2015-07-21 16:52:16 -06:00
scheiber
a0f730e3d7 use -Werror 2015-07-21 16:42:50 -06:00
scheiber
f33b6740fc Revert "update the submodule fore google test"
This reverts commit 5be9b6e584656bbc94d894887ded663442a024fb.
2015-07-21 16:39:00 -06:00
scheiber
d26d50092d fixing sign conversion warnings and loss of precision warnings 2015-07-21 15:15:42 -06:00
Milo Yip
df13af8c6d Merge pull request #392 from sebastic/master
Clarify problematic JSON license (#377)
2015-07-21 16:36:45 +08:00
Bas Couwenberg
b4b1a39937 Clarify problematic JSON license (#377) 2015-07-21 08:46:36 +02:00
Milo Yip
3003b841d5 Merge pull request #391 from pah/fix/no-doc2value-move
Prohibit C++11 move from Document to Value
2015-07-20 16:55:49 +08:00
Milo Yip
9b28107016 Merge pull request #373 from mloskot/faq-issue-366
Add to FAQ: How to insert a document node into another document?
2015-07-20 09:31:24 +08:00
Milo Yip
f431aaff9d Update dom.zh-cn.md 2015-07-20 09:29:46 +08:00
Milo Yip
8c0e50f596 Update dom.md 2015-07-20 09:29:15 +08:00
Philipp A. Hartmann
fec9e8a4f2 prohibit C++11 move from Document to Value
As reported in #387, silently moving a `GenericDocument` to a
`GenericValue` can lead to object slicing and premature deletion of
the owning allocator of the (surviving) `GenericValue`.

To reduce this risk, prohibit move construction of a `GenericValue`
from a `GenericDocument`.
2015-07-17 08:24:43 +02:00
Milo Yip
823b731896 Merge pull request #376 from pah/feature/document-swap
add GenericDocument<>::Swap with std::swap() support
2015-07-13 21:14:02 +08:00
Philipp A. Hartmann
c2b5864927 add documentation for 'swap' friend functions 2015-07-13 14:38:24 +02:00
Philipp A. Hartmann
46e1696316 add free inline swap functions 2015-07-13 09:35:15 +02:00
Philipp A. Hartmann
0ebe16e169 add and use simplified "internal::Swap"
This avoids the dependency on the <algorithm> header, as suggested by
@miloyip in #376.
2015-07-10 17:06:52 +02:00
Milo Yip
9b3b2d0c87 Merge pull request #383 from yuzhaol/master
Make it usable with old VC8 (VS2005)
2015-07-10 10:10:58 +08:00
yuzhaol
7567752710 Declare intrinsic function to avoid LNK2019 in x64 debug mode
Add #pragma intrinsic(_umul128) for MSVS 2005
2015-07-09 22:42:24 +01:00
yuzhaol
8e61b72678 Declare intrinsic function to avoid LNK2019 in x64 debug mode
Add #pragma intrinsic(_umul128) for MSVS 2005
2015-07-09 22:39:38 +01:00
Milo Yip
709daab1fe Merge pull request #369 from mloskot/typed-ctor
Add GenericDocument ctor overload to specify JSON type.
2015-07-04 09:31:03 +08:00
Philipp A. Hartmann
dd901f498b add GenericDocument<>::Swap
See #368.
2015-07-04 01:57:24 +02:00
Milo Yip
eb5818a5a2 Merge pull request #374 from mloskot/faq-issue-368-update
Update FAQ 8 with shorter version of clean-and-minimize idiom
2015-07-03 10:15:04 +08:00
Mateusz Loskot
6610577a3e Update FAQ 8 with shorter version of clean-and-minimize idiom.
Credits to @pah who suggested it in comment to #368.
2015-07-02 14:14:51 +02:00
Mateusz Łoskot
5ac04cb012 Correct formatting of FAQ 8 and 9 2015-07-02 14:05:30 +02:00
Mateusz Loskot
50660c093d Add to FAQ: How to insert a document node into another document?
Closes #366
2015-07-02 14:00:52 +02:00
Mateusz Łoskot
8197805208 Add explicit specifier to GenericDocument ctor.
@pah recommended to mark this constructor as explicit to avoid accidentally creating a temporary GenericDocument from a Type enum value (because all arguments but the first one are optional).
2015-07-01 22:36:26 +02:00
Milo Yip
a45a289c0c Merge pull request #372 from mloskot/faq-issue-368
Add to FAQ: How to clear-and-minimize a document?
2015-06-30 18:03:06 +08:00
Mateusz Loskot
3c47ae9fe4 Add to FAQ: How to clear-and-minimize a document?
Closes #368
2015-06-30 11:33:44 +02:00
Mateusz Loskot
a0177ca210 Add documentation for new GenericDocument ctor taking object type.
Update also documentation of the existing GenericDocument constructor.
2015-06-30 10:28:07 +02:00
Mateusz Loskot
413144a8b2 Add GenericDocument ctor overload to specify JSON type.
It unifies the interfaces with Value where kXXXType can be passed
into constructor.
It enables shortcut that helps to avoid extra SetXXX() call following
construction of a document.
2015-06-26 16:00:49 +02:00
miloyip
5d5d90c100 Applies the same changes for Chinese as #365 2015-06-25 09:53:31 +08:00
Milo Yip
c752b6aa68 Merge pull request #365 from mloskot/patch-1
Add missing allocator to uses of AddMember
2015-06-25 09:24:56 +08:00