clover/util: Pass initial count value to ref_counter constructor.
And mark the ref_count() method as const. Tested-by: EdB <edb+mesa@sigluy.net>
This commit is contained in:
parent
37e4d22e95
commit
c6817f19f6
1 changed files with 2 additions and 2 deletions
|
|
@ -31,10 +31,10 @@ namespace clover {
|
|||
///
|
||||
class ref_counter {
|
||||
public:
|
||||
ref_counter() : _ref_count(1) {}
|
||||
ref_counter(unsigned value = 1) : _ref_count(value) {}
|
||||
|
||||
unsigned
|
||||
ref_count() {
|
||||
ref_count() const {
|
||||
return _ref_count;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue