diff --git a/libuavcan/include/uavcan/internal/util.hpp b/libuavcan/include/uavcan/internal/util.hpp index b2ffc03e1e..15ab6e7bfa 100644 --- a/libuavcan/include/uavcan/internal/util.hpp +++ b/libuavcan/include/uavcan/internal/util.hpp @@ -27,7 +27,9 @@ struct StaticAssert */ template struct ShowIntegerAsError; - +/** + * Prevents copying when inherited + */ class Noncopyable { Noncopyable(const Noncopyable&); @@ -36,7 +38,9 @@ protected: Noncopyable() { } }; - +/** + * Compile time conditions + */ template struct EnableIf { }; @@ -63,7 +67,9 @@ struct StaticIf typedef FalseType Result; }; - +/** + * Value types + */ template struct BooleanType { }; typedef BooleanType TrueType; typedef BooleanType FalseType;