add semicolons after BOOST_OPENMETHOD_CLASSES in examples

This commit is contained in:
Jean-Louis Leroy
2025-12-18 17:04:17 -05:00
parent a6337d2f55
commit 5796d3c3ea
10 changed files with 10 additions and 10 deletions

View File

@@ -14,5 +14,5 @@ BOOST_OPENMETHOD_OVERRIDE(
return 5000.0;
}
BOOST_OPENMETHOD_CLASSES(Employee)
BOOST_OPENMETHOD_CLASSES(Employee);
// end::content[]

View File

@@ -14,6 +14,6 @@ BOOST_OPENMETHOD_OVERRIDE(
return next(emp) + emp->sales * 0.05; // base + commission
}
BOOST_OPENMETHOD_CLASSES(Employee, Salesman)
BOOST_OPENMETHOD_CLASSES(Employee, Salesman);
// end::content[]

View File

@@ -12,5 +12,5 @@ BOOST_OPENMETHOD_DEFINE_OVERRIDER(
return 5000.0;
}
BOOST_OPENMETHOD_CLASSES(Employee)
BOOST_OPENMETHOD_CLASSES(Employee);
// end::content[]

View File

@@ -16,4 +16,4 @@ BOOST_OPENMETHOD_OVERRIDE(
}
// end::content[]
BOOST_OPENMETHOD_CLASSES(Employee, Salesman)
BOOST_OPENMETHOD_CLASSES(Employee, Salesman);

View File

@@ -7,5 +7,5 @@
#include "roles.hpp"
#include <boost/openmethod.hpp>
BOOST_OPENMETHOD_CLASSES(Employee)
BOOST_OPENMETHOD_CLASSES(Employee);
// end::content[]

View File

@@ -16,4 +16,4 @@ BOOST_OPENMETHOD_OVERRIDE(
}
// end::content[]
BOOST_OPENMETHOD_CLASSES(Employee, Salesman)
BOOST_OPENMETHOD_CLASSES(Employee, Salesman);

View File

@@ -7,5 +7,5 @@
#include "roles.hpp"
#include <boost/openmethod.hpp>
BOOST_OPENMETHOD_CLASSES(employees::Employee)
BOOST_OPENMETHOD_CLASSES(employees::Employee);
// end::content[]

View File

@@ -17,7 +17,7 @@ BOOST_OPENMETHOD_OVERRIDE(
emp->sales * 0.05; // base + commission
}
BOOST_OPENMETHOD_CLASSES(employees::Employee, Salesman)
BOOST_OPENMETHOD_CLASSES(employees::Employee, Salesman);
} // namespace sales
// end::content[]

View File

@@ -71,7 +71,7 @@ BOOST_OPENMETHOD_OVERRIDE(
}
// ...and let's not forget to register the classes
BOOST_OPENMETHOD_CLASSES(Employee, Salesman)
BOOST_OPENMETHOD_CLASSES(Employee, Salesman);
// end::overriders[]
// tag::main[]

View File

@@ -66,7 +66,7 @@ BOOST_OPENMETHOD_OVERRIDE(
}
// ...and let's not forget to register the classes
BOOST_OPENMETHOD_CLASSES(Employee, Salesman)
BOOST_OPENMETHOD_CLASSES(Employee, Salesman);
// end::overriders[]
// tag::main[]