1097 Commits

Author SHA1 Message Date
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
Mateusz Łoskot
74b41c1a43 Add missing allocator to uses of AddMember
AddMember requires allocator, this fix keeps all uses of AddMember consistent across the whole tutorial.
2015-06-24 17:22:48 +02:00
Milo Yip
a326314a61 Fix #538 2015-06-18 15:40:39 +08:00
miloyip
134369d990 Add google analytics to documentation 2015-06-10 17:44:55 +08:00
miloyip
4e8e99c157 Remove www in readme.zh-cn also 2015-06-06 21:41:19 +08:00
miloyip
19687067b7 Try to remove www 2015-06-06 21:29:52 +08:00
miloyip
93bf4ceb32 Add CMAKE in travis-doxygen 2015-06-05 14:08:15 +08:00
Milo Yip
3bc945fdce Change documentation URL to http://www.rapidjson.org 2015-06-05 09:57:11 +08:00
Milo Yip
935d0a3944 Remove emscripten test 2015-06-05 09:56:25 +08:00
Milo Yip
b540ac89a3 Merge pull request #353 from miloyip/issue349_EmscriptenDouble 2015-06-04 22:26:23 +08:00
Milo Yip
81678272a2 Fix #349 emscripten alignment issue 2015-06-04 16:07:43 +08:00
miloyip
ce0184e73b Add and fix -Wimplicit-fallthrough for clang, revert #350 2015-06-03 23:53:14 +08:00
Milo Yip
1f78bc11ec Merge pull request #350 from c0nk/fix-clang-implicit-fallthrough
Fix warnings when compiling with clang and -Wimplicit-fallthrough
2015-06-03 22:29:33 +08:00
Kal Conley
013b71b92f Fix warnings when compiling with clang and -Wimplicit-fallthrough 2015-05-31 20:35:55 +02:00
miloyip
c8c8ad47c3 Further improve coverage of GenericPointer::Erase() 2015-05-21 17:02:27 +08:00
miloyip
7ddaa80e46 Improve coverage of GenericPointer::Erase() 2015-05-21 16:45:39 +08:00
miloyip
a2d09f0a03 Refactor GenericPointer::Erase() 2015-05-21 16:13:02 +08:00
miloyip
6e1d10ec6b Add GenericValue::EraseMember(string types) APIs 2015-05-21 16:12:33 +08:00
miloyip
1a570c342d Fix the undefined behaviour when negating the minimum value integers in Reader 2015-05-21 16:00:32 +08:00
miloyip
f688b2b152 Improve coverage of Pointer 2015-05-21 13:25:37 +08:00
Milo Yip
3229566573 Add multiple SkipWhitespace perftest 2015-05-20 13:33:14 +08:00
Milo Yip
302d1b735f Re-generate images in OSX 2015-05-14 16:56:52 +08:00
Milo Yip
3e56b0c35d Add one more commit about std::string from master 2015-05-14 15:49:33 +08:00
Milo Yip
0e9fe888b7 v1.0.2 release 2015-05-14 15:49:26 +08:00
Milo Yip
424abf1edc Merge pull request #335 from miloyip/member_stdstring
Add Value::XXXMember(...) overloads for std::string
2015-05-14 14:56:35 +08:00
Milo Yip
82ff580faa Merge pull request #342 from miloyip/issue340_doubleparsebug
Fix some numbers parsed incorrectly
2015-05-14 14:00:47 +08:00