mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 03:30:28 +08:00
prog_bar.cc: Qualify size_t.
* testsuite/util/io/prog_bar.cc: Qualify size_t. * testsuite/util/io/prog_bar.hpp: Likewise. * testsuite/util/io/verified_cmd_line_input.hpp: Likewise. From-SVN: r216520
This commit is contained in:
parent
5900d7553a
commit
b48d559917
@ -1,3 +1,9 @@
|
||||
2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
|
||||
|
||||
* testsuite/util/io/prog_bar.cc: Qualify size_t.
|
||||
* testsuite/util/io/prog_bar.hpp: Likewise.
|
||||
* testsuite/util/io/verified_cmd_line_input.hpp: Likewise.
|
||||
|
||||
2014-10-21 Ville Voutilainen <ville.voutilainen@gmail.com>
|
||||
|
||||
Implement more Library Fundamentals v1 variable templates.
|
||||
|
@ -41,7 +41,7 @@ namespace __gnu_pbds
|
||||
namespace test
|
||||
{
|
||||
prog_bar::
|
||||
prog_bar(size_t max, std::ostream& r_os, bool display/*= true*/) :
|
||||
prog_bar(std::size_t max, std::ostream& r_os, bool display/*= true*/) :
|
||||
m_cur(0),
|
||||
m_max(max),
|
||||
m_cur_disp(0),
|
||||
|
@ -57,7 +57,7 @@ namespace __gnu_pbds
|
||||
enum{num_disp = 40};
|
||||
|
||||
public:
|
||||
prog_bar(size_t max, std::ostream& r_os, bool display = true);
|
||||
prog_bar(std::size_t max, std::ostream& r_os, bool display = true);
|
||||
|
||||
void
|
||||
inc();
|
||||
@ -69,10 +69,10 @@ namespace __gnu_pbds
|
||||
operator=(const prog_bar& );
|
||||
|
||||
private:
|
||||
size_t m_cur;
|
||||
const size_t m_max;
|
||||
std::size_t m_cur;
|
||||
const std::size_t m_max;
|
||||
|
||||
size_t m_cur_disp;
|
||||
std::size_t m_cur_disp;
|
||||
|
||||
std::ostream& m_r_os;
|
||||
|
||||
|
@ -45,7 +45,7 @@ namespace __gnu_pbds
|
||||
namespace test
|
||||
{
|
||||
void
|
||||
verify_argc(size_t given, size_t required);
|
||||
verify_argc(std::size_t given, std::size_t required);
|
||||
|
||||
void
|
||||
verify_prob(double prob);
|
||||
@ -56,7 +56,7 @@ namespace __gnu_pbds
|
||||
double
|
||||
get_cmd_line_prob(int argc, char* a_p_argv[], int argn);
|
||||
|
||||
size_t
|
||||
std::size_t
|
||||
get_cmd_line_size(int argc, char* a_p_argv[], int argn);
|
||||
|
||||
bool
|
||||
|
Loading…
x
Reference in New Issue
Block a user