C++: Add value getter to Data_Node_Anydata
diff --git a/swig/cpp/src/Tree_Data.hpp b/swig/cpp/src/Tree_Data.hpp
index 3005f15..5129ca6 100644
--- a/swig/cpp/src/Tree_Data.hpp
+++ b/swig/cpp/src/Tree_Data.hpp
@@ -268,7 +268,8 @@
~Data_Node_Anydata();
/** get value_type variable from [lyd_node_anydata](@ref lyd_node_anydata)*/
LYD_ANYDATA_VALUETYPE value_type() {return ((struct lyd_node_anydata *) node)->value_type;};
- //union value
+ /** get value variable from [lyd_node_anydata](@ref lyd_node_anydata)*/
+ lyd_anydata_value value() {return ((struct lyd_node_anydata *) node)->value;};
/** get child variable from [lyd_node_anydata](@ref lyd_node_anydata)*/
S_Data_Node child() {return nullptr;};