new initializer list ctor #72

Merged
muellerr merged 4 commits from KSat/fsfw:mueller_initializer_list into master 2020-07-07 12:10:54 +02:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit a159e60a90 - Show all commits

View File

@ -70,7 +70,6 @@ Type PoolEntry<T>::getType() {
return PodTypeConversion<T>::type;
}
template class PoolEntry<bool>;
template class PoolEntry<uint8_t>;
template class PoolEntry<uint16_t>;
template class PoolEntry<uint32_t>;

View File

@ -2,10 +2,10 @@
#define POOLENTRY_H_
#include <framework/datapool/PoolEntryIF.h>
#include <stddef.h>
#include <cstddef>
#include <cstring>
#include <initializer_list>
#include <type_traits>
/**
* @brief This is a small helper class that defines a single data pool entry.
* @details
@ -24,6 +24,9 @@
template <typename T>
class PoolEntry : public PoolEntryIF {
public:
static_assert(not std::is_same<T, bool>::value,
"Do not use boolean for the PoolEntry type, use uint8_t instead!"
"Warum? Darum :-)");
/**
* @brief In the classe's constructor, space is allocated on the heap and
Review

Is this compiler warning okay?

Is this compiler warning okay?
* potential init values are copied to that space.