[libsigcplusplus] test_member_method_trait: Implement the methods.



commit 557c7ce387a5fcba9122d8e86bd3fe551f90dd84
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Mar 18 09:05:44 2016 +0100

    test_member_method_trait: Implement the methods.
    
    Because Jetbrains CLion inspections complain about it, and that
    seems fair.

 tests/test_member_method_trait.cc |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/tests/test_member_method_trait.cc b/tests/test_member_method_trait.cc
index aa481b3..8c9a7ba 100644
--- a/tests/test_member_method_trait.cc
+++ b/tests/test_member_method_trait.cc
@@ -9,16 +9,24 @@
 namespace
 {
 
-class Something
-{
+class Something {
 public:
-  void some_func(int a);
-  void some_const_func(int a) const;
-  void some_volatile_func(int a) volatile;
-  void some_const_volatile_func(int a) const volatile;
+  void some_func(int) { }
+
+  void some_const_func(int) const { }
+
+  void some_volatile_func(int) volatile { }
+
+  void some_const_volatile_func(int) const volatile { }
+
+  int some_int_func() {
+    return 1;
+  }
 
-  int some_int_func();
-  bool some_bool_func();
+  bool some_bool_func()
+  {
+    return true;
+  }
 };
 
 } // end anonymous namespace


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]