mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
change from string to char*
This commit is contained in:
parent
0931262acf
commit
6c5c708877
@ -38,7 +38,7 @@
|
||||
#include <cstddef> // for size_t
|
||||
|
||||
namespace{
|
||||
static const std::string deathstring("Expected Death");
|
||||
static const char *deathstring("Expected Death");
|
||||
}
|
||||
|
||||
namespace gsl
|
||||
|
@ -51,7 +51,7 @@ int g(int i)
|
||||
return i;
|
||||
}
|
||||
|
||||
static const std::string deathstring("Expected Death");
|
||||
static const char *deathstring("Expected Death");
|
||||
} // namespace
|
||||
|
||||
TEST(assertion_tests, expects)
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include <vector> // for vector
|
||||
|
||||
namespace{
|
||||
static const std::string deathstring("Expected Death");
|
||||
static const char *deathstring("Expected Death");
|
||||
}
|
||||
|
||||
TEST(at_tests, static_array)
|
||||
|
@ -139,7 +139,7 @@ void fn(const Bounds&)
|
||||
static_assert(Bounds::static_size == 60, "static bounds is wrong size");
|
||||
}
|
||||
|
||||
static const std::string deathstring("Expected Death");
|
||||
static const char *deathstring("Expected Death");
|
||||
} // namespace
|
||||
|
||||
TEST(multi_span_test, default_constructor)
|
||||
|
@ -53,7 +53,7 @@ struct fail_fast;
|
||||
using namespace gsl;
|
||||
|
||||
namespace{
|
||||
static const std::string deathstring("Expected Death");
|
||||
static const char *deathstring("Expected Death");
|
||||
}
|
||||
|
||||
struct MyBase
|
||||
|
@ -75,7 +75,7 @@ struct AddressOverloaded
|
||||
return {};
|
||||
}
|
||||
};
|
||||
static const std::string deathstring("Expected Death");
|
||||
static const char *deathstring("Expected Death");
|
||||
} // namespace
|
||||
|
||||
TEST(span_test, constructors)
|
||||
|
@ -42,10 +42,6 @@ namespace gsl
|
||||
struct fail_fast;
|
||||
} // namespace gsl
|
||||
|
||||
namespace{
|
||||
static const std::string deathstring("Expected Death");
|
||||
}
|
||||
|
||||
using namespace gsl;
|
||||
|
||||
GSL_SUPPRESS(f.4) // NO-FORMAT: attribute
|
||||
@ -147,6 +143,7 @@ TEST(strict_notnull_tests, TestStrictNotNull)
|
||||
}
|
||||
|
||||
#if defined(__cplusplus) && (__cplusplus >= 201703L)
|
||||
static const char *deathstring("Expected Death");
|
||||
|
||||
TEST(strict_notnull_tests, TestStrictNotNullConstructorTypeDeduction)
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ using namespace gsl;
|
||||
|
||||
namespace
|
||||
{
|
||||
static const std::string deathstring("Expected Death");
|
||||
static const char *deathstring("Expected Death");
|
||||
struct BaseClass
|
||||
{
|
||||
};
|
||||
|
@ -72,7 +72,7 @@ auto strnlen(const CharT* s, std::size_t n)
|
||||
|
||||
namespace
|
||||
{
|
||||
static const std::string deathstring("Expected Death");
|
||||
static const char *deathstring("Expected Death");
|
||||
|
||||
template <typename T>
|
||||
T move_wrapper(T&& t)
|
||||
|
@ -45,7 +45,7 @@
|
||||
using namespace gsl;
|
||||
|
||||
namespace{
|
||||
static const std::string deathstring("Expected Death");
|
||||
static const char *deathstring("Expected Death");
|
||||
void f(int& i) { i += 1; }
|
||||
static int j = 0;
|
||||
void g() { j += 1; }
|
||||
|
Loading…
Reference in New Issue
Block a user