Fix gcc -Wshadow warnings in tribool.

Fixes #3093. 1/2 of the patch provided by Dustin Spicuzza.


[SVN r53429]
This commit is contained in:
Vladimir Prus
2009-05-30 06:36:18 +00:00
parent 233cfca75c
commit 246d1ee6df
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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_; }