mirror of
https://github.com/boostorg/logic.git
synced 2025-07-29 19:57:17 +02:00
Fix gcc -Wshadow warnings in tribool.
Fixes #3093. 1/2 of the patch provided by Dustin Spicuzza. [SVN r53429]
This commit is contained in:
@ -93,7 +93,7 @@ public:
|
||||
*
|
||||
* \throws nothrow
|
||||
*/
|
||||
tribool(bool value) : value(value? true_value : false_value) {}
|
||||
tribool(bool initial_value) : value(initial_value? true_value : false_value) {}
|
||||
|
||||
/**
|
||||
* Construct a new 3-state boolean value with an indeterminate value.
|
||||
|
@ -140,7 +140,8 @@ public:
|
||||
indeterminate_name() : name_(get_default_indeterminate_name<CharT>()) {}
|
||||
|
||||
/// Construct the facet with the given name for the indeterminate value
|
||||
explicit indeterminate_name(const string_type& name) : name_(name) {}
|
||||
explicit indeterminate_name(const string_type& initial_name)
|
||||
: name_(initial_name) {}
|
||||
|
||||
/// Returns the name for the indeterminate value
|
||||
string_type name() const { return name_; }
|
||||
|
Reference in New Issue
Block a user