summaryrefslogtreecommitdiff
path: root/documentation/constructors-and-destructors.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-14 13:54:39 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-14 13:54:39 +0100
commita525d95b26fa6e4afdca803a8f77579cd26cedc6 (patch)
treed0bbaecbaa4f477ea7f5b7f30c05d0dc63229d8a /documentation/constructors-and-destructors.html
parent1f1a0fa9349d37e623ae763b48c7ea21681cd45b (diff)
added extra property methods to allow both const and non-const setters and getters, updated documentation
Diffstat (limited to 'documentation/constructors-and-destructors.html')
-rw-r--r--documentation/constructors-and-destructors.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/documentation/constructors-and-destructors.html b/documentation/constructors-and-destructors.html
index d7cc61b..399367a 100644
--- a/documentation/constructors-and-destructors.html
+++ b/documentation/constructors-and-destructors.html
@@ -135,10 +135,10 @@ extern "C" {
// description of the class so that PHP knows which methods are accessible
Php::Class&lt;Counter&gt; counter("Counter");
- counter.method("__construct", &Counter::__construct);
- counter.method("increment", &Counter::increment);
- counter.method("decrement", &Counter::decrement);
- counter.method("value", &Counter::value);
+ counter.method("__construct", &amp;Counter::__construct);
+ counter.method("increment", &amp;Counter::increment);
+ counter.method("decrement", &amp;Counter::decrement);
+ counter.method("value", &amp;Counter::value);
// add the class to the extension
myExtension.add(std::move(counter));