Skip to content

Commit 24798ee

Browse files
author
Mindaugas Vinkelis
committed
changelog update for 5.2.4
1 parent 4dcdd59 commit 24798ee

File tree

9 files changed

+39
-26
lines changed

9 files changed

+39
-26
lines changed

.github/workflows/on_linux.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ on:
99
jobs:
1010
build:
1111
name: ${{ matrix.config.name }}
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313
strategy:
1414
fail-fast: false
1515
matrix:
1616
config:
17-
- name: "Ubuntu Latest with GCC 12"
17+
- name: "Ubuntu Latest with GCC 14"
1818
compiler: gcc
19-
compiler_ver: 12
20-
- name: "Ubuntu Latests with Clang 15"
19+
compiler_ver: 14
20+
- name: "Ubuntu Latests with Clang 18"
2121
compiler: clang
22-
compiler_ver: 15
22+
compiler_ver: 18
2323
steps:
2424
- name: Prepare specific Clang version
2525
if: ${{ matrix.config.compiler == 'clang' }}
@@ -35,7 +35,6 @@ jobs:
3535
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-${{ matrix.config.compiler_ver}} 100
3636
- name: Installing GTest
3737
run: |
38-
sudo add-apt-repository ppa:team-xbmc/ppa
3938
sudo apt-get update
4039
sudo apt-get install libgmock-dev
4140
- uses: actions/checkout@v3

.github/workflows/on_mac.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
run: |
1515
git clone https://github.com/google/googletest.git
1616
cd googletest
17-
git checkout release-1.11.0
17+
git checkout v1.14.0
1818
cmake -S . -B build
19-
cmake --build build --target install
19+
sudo cmake --build build --target install
2020
- uses: actions/checkout@v3
2121
- name: Configure
2222
run: cmake -S . -B build -DBITSERY_BUILD_TESTS=ON -DBITSERY_BUILD_EXAMPLES=ON -DCMAKE_CXX_STANDARD=17

.github/workflows/on_windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: |
1616
git clone https://github.com/google/googletest.git
1717
cd googletest
18-
git checkout release-1.11.0
18+
git checkout v1.14.0
1919
cmake -S . -B build -Dgtest_force_shared_crt=ON
2020
cmake --build build --config Release --target install
2121
- uses: actions/checkout@v3

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# [5.2.4](https://github.com/fraillt/bitsery/compare/v5.2.3...v5.2.4) (2024-07-30)
2+
3+
### Improvements
4+
* implement brief syntax for std::optional and std::bitset. #116 (thanks to [Destroyerrrocket](https://github.com/Destroyerrrocket))
5+
* improve performance for buffer adapters. #118 (thanks to [Destroyerrrocket](https://github.com/Destroyerrrocket))
6+
* check if should swap by taking into account actual type (in addition to configuration). #105 (thanks to [SoftdriveFelix](https://github.com/SoftdriveFelix))
7+
* fix compile errors for latest compilers. #106 (thanks to [NBurley93](https://github.com/NBurley93))
8+
9+
### Other notes
10+
* change cmake_minimum_required to 3.25.
11+
* change compilers for ubuntu (gcc 14 and clang 18).
12+
113
# [5.2.3](https://github.com/fraillt/bitsery/compare/v5.2.2...v5.2.3) (2022-12-01)
214

315
### Improvements

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.1)
1+
cmake_minimum_required(VERSION 3.25)
22
project(bitsery
33
LANGUAGES CXX
44
VERSION 5.2.2)

include/bitsery/adapter/buffer.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,9 @@ class OutputBufferAdapter
276276
}
277277
}
278278

279-
void maybeResize(BITSERY_MAYBE_UNUSED size_t newOffset, std::false_type)
279+
void maybeResize(size_t newOffset, std::false_type)
280280
{
281+
static_cast<void>(newOffset);
281282
assert(newOffset <= _bufferSize);
282283
}
283284

include/bitsery/bitsery.h

-6
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@
7777
#define BITSERY_UNLIKELY
7878
#endif
7979

80-
#if __has_cpp_attribute(maybe_unused)
81-
#define BITSERY_MAYBE_UNUSED BITSERY_ATTRIBUTE(maybe_unused)
82-
#else
83-
#define BITSERY_MAYBE_UNUSED
84-
#endif
85-
8680
#if __GNUC__
8781
#define BITSERY_NOINLINE __attribute__((noinline))
8882
#elif defined(_MSC_VER)

tests/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
#SOFTWARE.
2222

23-
cmake_minimum_required(VERSION 3.11)
23+
cmake_minimum_required(VERSION 3.25)
2424
project(bitsery_tests
2525
LANGUAGES CXX)
2626

tests/brief_syntax.cpp

+15-8
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@
2323
#include <bitsery/brief_syntax.h>
2424
#include <bitsery/brief_syntax/array.h>
2525
#include <bitsery/brief_syntax/atomic.h>
26-
#include <bitsery/brief_syntax/bitset.h>
2726
#include <bitsery/brief_syntax/chrono.h>
2827
#include <bitsery/brief_syntax/deque.h>
2928
#include <bitsery/brief_syntax/forward_list.h>
3029
#include <bitsery/brief_syntax/list.h>
3130
#include <bitsery/brief_syntax/map.h>
3231
#include <bitsery/brief_syntax/memory.h>
33-
#include <bitsery/brief_syntax/optional.h>
32+
3433
#include <bitsery/brief_syntax/queue.h>
3534
#include <bitsery/brief_syntax/set.h>
3635
#include <bitsery/brief_syntax/stack.h>
@@ -41,6 +40,10 @@
4140
#if __cplusplus > 201402L
4241
#include <bitsery/brief_syntax/tuple.h>
4342
#include <bitsery/brief_syntax/variant.h>
43+
#include <bitsery/brief_syntax/optional.h>
44+
#if __cplusplus > 202002L
45+
#include <bitsery/brief_syntax/bitset.h>
46+
#endif
4447
#elif defined(_MSC_VER)
4548
#pragma message( \
4649
"C++17 and /Zc:__cplusplus option is required to enable std::tuple and std::variant brief syntax tests")
@@ -475,12 +478,6 @@ TEST(BriefSyntax, StdAtomic)
475478
0x1337);
476479
}
477480

478-
TEST(BriefSyntax, StdBitset)
479-
{
480-
std::bitset<17> bits{ 0b10101010101010101 };
481-
EXPECT_TRUE(procBriefSyntax(bits) == bits);
482-
}
483-
484481
#if __cplusplus > 201402L
485482

486483
TEST(BriefSyntax, StdTuple)
@@ -504,6 +501,16 @@ TEST(BriefSyntax, StdOptional)
504501
EXPECT_TRUE(procBriefSyntax(opt) == opt);
505502
}
506503

504+
#if __cplusplus > 202002L
505+
506+
TEST(BriefSyntax, StdBitset)
507+
{
508+
std::bitset<17> bits{ 0b10101010101010101 };
509+
EXPECT_TRUE(procBriefSyntax(bits) == bits);
510+
}
511+
512+
#endif
513+
507514
#endif
508515

509516
TEST(BriefSyntax, NestedTypes)

0 commit comments

Comments
 (0)