Copy edit SafeBool.h

Make minor copy edits, mostly for nonrestrictive clauses.
pull/5392/head
Amanda Butler 2017-11-07 16:25:45 -06:00 committed by GitHub
parent 739b59b598
commit 6e455417d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@
#ifndef BLE_API_SAFE_BOOL_H_
#define BLE_API_SAFE_BOOL_H_
/* Safe bool idiom, see : http://www.artima.com/cppsource/safebool.html */
/* Safe bool idiom, see: http://www.artima.com/cppsource/safebool.html */
/**
* @file
@ -34,7 +34,7 @@ namespace SafeBool_ {
/**
* Base class of all SafeBool instances.
*
* This non template base class exists to reduces the number of instantiation of
* This nontemplate base class exists to reduce the number of instantiation of
* the trueTag function.
*/
class base {
@ -43,17 +43,17 @@ class base {
protected:
/**
* The bool type is a pointer to method which can be used in boolean context.
* The bool type is a pointer to method that can be used in boolean context.
*/
typedef void (base::*BoolType_t)() const;
/**
* Non implemented call, use to disallow conversion between unrelated types.
* Nonimplemented call, use to disallow conversion between unrelated types.
*/
void invalidTag() const;
/**
* Special member function which indicate a true value.
* Special member function that indicates a true value.
*/
void trueTag() const {}
};