From 1f7054b6cab1ad5699972a05a24e5f16c0467aa2 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Fri, 28 Feb 2014 15:22:36 +0400 Subject: [PATCH] Minor cleanup for utils.hpp --- libuavcan/include/uavcan/internal/util.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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;