1
0
forked from fsfw/fsfw

added explicit type conversion operator

This commit is contained in:
2020-11-30 17:03:14 +01:00
parent d1beb96c60
commit ef2e07b389
3 changed files with 25 additions and 17 deletions

View File

@ -121,6 +121,10 @@ public:
LocalPoolVar<T> &operator=(const T& newValue);
LocalPoolVar<T> &operator=(const LocalPoolVar<T>& newPoolVariable);
//! Explicit type conversion operator. Allows casting the class to
//! its template type to perform operations on value.
explicit operator T() const;
bool operator==(const LocalPoolVar<T>& other) const;
bool operator==(const T& other) const;