Browse Source

Updated CMake settings

Eyck Jentzsch 1 year ago
parent
commit
ac8bd1d291
2 changed files with 2 additions and 3 deletions
  1. 1
    1
      CMakeLists.txt
  2. 1
    2
      incl/util/bit_field.h

+ 1
- 1
CMakeLists.txt View File

@@ -1,4 +1,4 @@
1
-cmake_minimum_required (VERSION 2.8.12)
1
+cmake_minimum_required(VERSION 3.3)
2 2
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/../cmake) # main (top) cmake dir
3 3
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) # project specific cmake dir
4 4
 

+ 1
- 2
incl/util/bit_field.h View File

@@ -31,8 +31,7 @@ freely, subject to the following restrictions:
31 31
 // All members are public to simplify compliance with sections 9.0.7 and
32 32
 // 9.5.1 of the C++11 standard, thereby avoiding undefined behavior.
33 33
 //---------------------------------------------------------
34
-template <typename T, int Offset, int Bits> class BitFieldMember {
35
-public:
34
+template <typename T, int Offset, int Bits> struct BitFieldMember {
36 35
     T value;
37 36
 
38 37
     static_assert(Offset + Bits <= (int)sizeof(T) * 8, "Member exceeds bitfield boundaries");