Skip to content

Commit 083b6c4

Browse files
author
Mindaugas Vinkelis
committed
changelog update for 5.2.4
1 parent 4dcdd59 commit 083b6c4

File tree

5 files changed

+33
-15
lines changed

5 files changed

+33
-15
lines changed

.github/workflows/on_linux.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
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

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)

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+
#if __cplusplus > 202002L
44+
#include <bitsery/brief_syntax/optional.h>
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)