Commit Graph

7 Commits

Author SHA1 Message Date
Jonathan G Rennison
5586d1a20a Remove use of deprecated allocator rebind in cpp-btree 2021-10-29 21:12:16 +01:00
Jonathan G Rennison
e81697c363 cpp-btree: Fix -Wdeprecated-copy warnings on GCC 9 2019-11-05 18:07:49 +00:00
Jonathan G Rennison
7690fe8572 cpp-btree: Update to match upstream
minor optimization: minimize calls to end()

Minor optimization: increase the chances that the compiler will inline calls to end().
Has been observed to make a difference with gcc 4.9.3.

Fix build and warnings on MSVC (2017)
Uses static_assert, a C++11 feature. Also adds some explicit uses of
static_cast in order to suppress warnings about lossy type conversion.
2018-11-01 18:54:24 +00:00
Jonathan G Rennison
133ccabf42 btree: Use static_assert instead of workaround macro 2018-05-06 12:15:54 +01:00
Jonathan G Rennison
344f39196f cpp-btree: Remove remaining uses of ssize_t
This is due to issues building on Windows
2017-02-28 21:23:52 +00:00
Jonathan G Rennison
418e9f4158 Remove assert.h include from btree.h, as this overrides OpenTTD's assert 2017-02-19 13:55:31 +00:00
Jonathan G Rennison
b4cfb1adbc Import cpp-btree library into 3rdparty section.
Repo: https://github.com/JGRennison/cpp-btree
Commmit: 6cabdb40fcbb7e12e6d499f92b898f6ec80ae0f1

Remove test program, build scripts, etc.
2017-02-07 19:07:11 +00:00