Commit d196babc authored by Wouter's avatar Wouter

Implicit conversion to base type in generated AbstractWrapper

Makes them easier to use
parent 743999b8
......@@ -34,6 +34,11 @@ class AbstractWrapper {
*/
T value() const { return m_value; };
/**
* Get the current value as implicit conversion.
*/
operator T() const { return m_value; };
/**
* Check if the current value is valid.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment