libAnyBus/Defining_a_new_class

This tutorial describes how to define a class that can be used on the bus.

Consider the following class:

  1. class C {
  2.     int i;
  3.     C ( int i ) : i ( i ) {};
  4. };

This class must adhere to the following rules:

This satisfies the first two rules:

Comments (0)

Post comment

If you wish, you can use markdown syntax in the comment field.