Skip to content

Commit

Permalink
Release v0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Oct 7, 2020
2 parents f195150 + 9dacea7 commit a4adebe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ option (MQTTSN_NO_WARN_AS_ERR "Don't treat compilation warnings as errors." OFF)
# is not provided and examples are not disabled.

if ("${COMMSDSL_TAG}" STREQUAL "")
set(COMMSDSL_TAG "v3.5.1")
set(COMMSDSL_TAG "v3.5.2")
endif ()

if ("${COMMS_TAG}" STREQUAL "")
set(COMMS_TAG "v3.0.1")
set(COMMS_TAG "v3.1")
endif ()

set (VERSION "0.18.1")
set (VERSION "0.19")

set (EXTERNALS_DIR "${PROJECT_SOURCE_DIR}/externals")

Expand Down Expand Up @@ -55,7 +55,7 @@ if ("${COMMSDSL2COMMS}" STREQUAL "")
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${commsdsl2comms_install_dir}
-DCOMMSDSL_NO_TESTS=ON -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DBOOST_ROOT=${BOOST_ROOT}
${boost_static_libs_param}
-DCOMMSDSL_EXTERNALS_DIR=${EXTERNALS_DIR} ${boost_static_libs_param}
BINARY_DIR "${commsdsl2comms_bin_dir}"
)

Expand Down
7 changes: 7 additions & 0 deletions src/include/mqttsn/field/MsgLengthField.h.public
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ void setLengthValue(std::size_t val)
field_long().setExists();
field_long().field().value() = static_cast<std::uint16_t>(val);
}

// Verifying compile time length calculations.
static constexpr std::size_t MinLen = Base::minLength();
static constexpr std::size_t MaxLen = Base::maxLength();
static_assert(MinLen == Field_short::minLength(), "Invalid length assumption");
static_assert(MaxLen == (Field_short::maxLength() + Field_long::Field::maxLength()),
"Invalid length assumption");

0 comments on commit a4adebe

Please sign in to comment.