additional tweask

This commit is contained in:
Robin Müller 2021-01-03 14:41:54 +01:00
parent 695a767164
commit 98af84c145
3 changed files with 4 additions and 1 deletions

View File

@ -157,10 +157,12 @@ protected:
*/
ReturnValue_t commitWithoutLock() override;
#if FSFW_CPP_OSTREAM_ENABLED == 1
// std::ostream is the type for object std::cout
template <typename U>
friend std::ostream& operator<< (std::ostream &out,
const LocalPoolVariable<U> &var);
#endif
private:
};

View File

@ -106,12 +106,14 @@ inline ReturnValue_t LocalPoolVariable<T>::deSerialize(const uint8_t** buffer,
return SerializeAdapter::deSerialize(&value, buffer, size, streamEndianness);
}
#if FSFW_CPP_OSTREAM_ENABLED == 1
template<typename T>
inline std::ostream& operator<< (std::ostream &out,
const LocalPoolVariable<T> &var) {
out << var.value;
return out;
}
#endif
template<typename T>
inline LocalPoolVariable<T>::operator T() const {

View File

@ -3,7 +3,6 @@
#include "../osal/Endiness.h"
#include <cstring>
#include <iostream>
/**
* Helper class to convert variables or bitstreams between machine