Parcourir la source

[trac977] Protected constructor

Michal 'vorner' Vaner il y a 14 ans
Parent
commit
c13544e653
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      src/lib/acl/check.h

+ 5 - 0
src/lib/acl/check.h

@@ -44,6 +44,11 @@ namespace acl {
  * (eg. the packet, information where it came from, to what port, ...).
  * (eg. the packet, information where it came from, to what port, ...).
  */
  */
 template<typename Context> class Check {
 template<typename Context> class Check {
+protected:
+    /// \brief Constructor.
+    ///
+    /// Just to make sure this thing is not directly instantiated.
+    Check() { }
 public:
 public:
     /**
     /**
      * \brief The check itself.
      * \brief The check itself.