Matt Blair
96d95aa092
Merge branch 'master' into no-boost
2015-07-15 17:20:03 -04:00
Jonathan Hamilton
b426fafff6
Fix some Node::operator[] regressions from 0.5.1
...
"const Node Node::operator[](const Key& key) const" changed from
returning new empty node if the key was missing in 0.5.1 to returning
a shared 'zombie' node in 0.5.2 to resolve a memory leak.
(Specifically 1025f76df1 was where this
was introduced)
This caused some regressions where this 'zombie' object threw exceptions
in some functions where the 'empty' object would not.
This change fixes the Node::as(fallback) method (to return the
'fallback' instead of throwing an exception) and the
Node::begin()/Node::end() methods to return default-constructed
iterators (so begin() == end() in such cases) instead of another
exception.
2015-06-08 11:47:10 -07:00
Matt Blair
b0322de6a4
Merge pull request #1 from c0yote/264-c++11-auto_ptr-to-unique_ptr
...
Replaced auto_ptr with unique_ptr.
2015-05-27 11:03:12 -04:00
U.G. Wilson
bdfb87b461
Repalced auto_ptr with unique_ptr.
2015-05-26 17:13:50 -05:00
Sébastien Rombauts
b0a4de3dd9
Fix missing/TODO links to 0.3.0 and 0.5.2 releases in README
2015-05-26 18:24:22 +02:00
Matt Blair
2703ef784d
clang-format
2015-05-07 13:26:01 -04:00
Matt Blair
012baa7d62
Fix operator-> for iterators
...
The proxy reference pattern used in Boost iterators to provide pointers to temporary values requires that -> actually returns a 'proxy' object that further has -> applied in the calling scope
2015-05-07 13:11:47 -04:00
Matt Blair
c78d19bdcc
Initialize iterator_base members
2015-04-30 15:57:44 -04:00
Matt Blair
748148a81d
Add -std=c++11 to util build flags
2015-04-30 14:20:38 -04:00
Matt Blair
6c7fddebbb
Replace ptrdiff_t with std::ptrdiff_t
2015-04-30 14:19:40 -04:00
Matt Blair
4942ca572a
Remove Boost requirement from CMakeLists
2015-04-29 17:48:36 -04:00
Matt Blair
f09c4b44e1
Replace iterator_facade and iterator_adaptor with std iterators
...
Borrows the 'proxy reference' technique used in the boost templates
2015-04-29 17:47:30 -04:00
Matt Blair
7c26845bb4
Replace 'boost::is_convertible' with 'std::is_convertible'
2015-04-27 19:23:54 -04:00
Matt Blair
dc3e416bb9
Add 'std=c++11' to test compiler flags
2015-04-27 18:51:58 -04:00
Matt Blair
3dc430e74a
Remove usages of boost::enable_if and boost::next
2015-04-27 18:03:23 -04:00
Matt Blair
86610fcb75
Replace boost::next with std::next
2015-04-27 17:36:52 -04:00
Matt Blair
aa30edb3aa
Remove use of 'boost/shared_ptr.h'
2015-04-27 17:31:30 -04:00
Matt Blair
52903e89a1
Replace boost::noncopyable with deleted copy and assignment
2015-04-27 17:27:33 -04:00
Matt Blair
1b9796cec5
Remove use of 'boost/shared_ptr.h'
2015-04-27 17:18:09 -04:00
Matt Blair
7995295038
Remove use of 'boost/type_traits.h'
2015-04-27 17:14:42 -04:00
Matt Blair
3d3c468ddb
Add to compiler flags
2015-04-27 16:58:38 -04:00
Jesse Beder
b43db54810
Add CONTRIBUTING file.
...
Initial description of style, tests, and pull request process.
2015-04-08 14:30:07 -05:00
Jesse Beder
5c390e8d6c
Merge pull request #303 from bdutro/patch-1-squashed
...
Fix compiler error by updating node_data::remove to use new equals() method.
2015-04-08 13:59:56 -05:00
bdutro
aa928b925b
Update node_data::remove to use new equals() method
...
- Update the call to equals() in node_data::remove() to match the new implementation
- Add unit test for node::remove() to catch this type of bug in the future
2015-04-08 13:41:59 -05:00
Jesse Beder
908d38ebef
Merge pull request #296 from WrinklyNinja/useful-conversion-errors
...
Add more error messages that include the location in a parsed file.
2015-04-03 09:41:02 -05:00
Oliver Hamlet
ec8aa4fa62
More useful error messages.
...
Applied the patch given in jbeder/yaml-cpp#200 with the correct code
style.
2015-04-02 20:50:11 +01:00
Jesse Beder
5de38a76b6
Merge pull request #294 from WrinklyNinja/add-gitignore
...
Add a .gitignore file.
2015-03-31 08:11:28 -05:00
Oliver Hamlet
25f3935b7c
Add a .gitignore file.
...
Ignore the CMake build directory.
2015-03-31 09:33:49 +01:00
Jesse Beder
4d44602a5d
Remove mercurial files
2015-03-30 20:33:45 -05:00
Jesse Beder
897cfd5b2e
Rename license file and update copyright date.
2015-03-30 20:32:46 -05:00
Jesse Beder
1a6cb7376a
Add README.
2015-03-30 20:31:59 -05:00
Jesse Beder
66acd0d54b
Added tag release-0.5.2 for changeset 90238df1f398
2015-03-29 21:32:17 -05:00
Jesse Beder
998d7bf31e
Bump version to 0.5.2
2015-03-29 21:31:56 -05:00
Jesse Beder
25c466a152
Run clang-format
2015-03-29 21:27:20 -05:00
Jesse Beder
7092a0b099
Fixed linker error on Visual Studio with a shared lib by moving the static methods node_data::equals to an instance method on node.
2015-03-29 21:11:53 -05:00
Jesse Beder
25b2ed0787
Fix operator bool() exception on zombie node
2015-03-29 14:31:22 -05:00
Jesse Beder
67e37d000a
Merge from core
2015-02-21 12:34:19 -06:00
Jesse Beder
b1322770c2
Remove the extraneous gtest library from the test's link args, since gmock covers it
2015-02-21 12:33:36 -06:00
Jesse Beder
39e7b651dc
Fix test that depended on the order of map outputs
2015-02-21 12:14:53 -06:00
Jesse Beder
0970a108bd
Remove stray field
2015-01-24 17:58:58 -06:00
Jesse Beder
f9ff72dee7
Add test for an empty string not being null
2015-01-24 17:30:12 -06:00
Jesse Beder
1025f76df1
Fix memory leak when accessing a const Node with a key that doesn't exist.
2015-01-24 17:22:45 -06:00
Jesse Beder
a5e86cde59
Merge core
2015-01-24 16:30:27 -06:00
Jesse Beder
77c90a08e8
Refactor plain scalar validation in the emitter to precompute the invalid regexes
2015-01-24 16:29:57 -06:00
Jesse Beder
1006bee48a
Default-initialize all sub-iterators in node_iterator_base
2015-01-24 16:23:35 -06:00
Jesse Beder
899b6614c1
Merge from core
2015-01-24 16:07:36 -06:00
Jesse Beder
bc86fd4aec
Force null to be quoted if written as a string
2015-01-24 16:07:10 -06:00
Jesse Beder
7d932f0a10
Merge from core
2015-01-24 15:59:24 -06:00
Jesse Beder
087e0673f3
Renamed the None enumeration vaules to NoType to avoid a collision with X11's macro
2015-01-24 15:58:14 -06:00
Jesse Beder
c9729b26a4
Remove stray 'auto' that leaked in without C++11
2015-01-24 15:34:39 -06:00