From 5a42ff30b4c079a41f76f40ea82efeb1d9d974eb Mon Sep 17 00:00:00 2001 From: jwellbelove Date: Sun, 26 Oct 2014 17:41:12 +0000 Subject: [PATCH] Rename to_string Renamed to_string to c_str --- enum_type.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/enum_type.h b/enum_type.h index c8895681..c7a8eadb 100644 --- a/enum_type.h +++ b/enum_type.h @@ -83,12 +83,12 @@ SOFTWARE. inline TypeName() {} \ inline TypeName(const TypeName &other) : value(other.value) {} \ inline TypeName(enum_type value) : value(value) {} \ - inline TypeName& operator=(const TypeName &other) { value = other.value} \ - inline explicit TypeName(ValueType value) : value(static_cast(value)) {} \ - inline operator ValueType() const {return (static_cast(value));} \ - inline ValueType get_value() const {return (static_cast(value));} \ + inline TypeName& operator=(const TypeName &other) {value = other.value; return *this;} \ + inline explicit TypeName(value_type value) : value(static_cast(value)) {} \ + inline operator value_type() const {return static_cast(value);} \ + inline value_type get_value() const {return static_cast(value);} \ inline enum_type get_enum() const {return value;} \ - const char* to_string() const \ + const char* c_str() const \ { \ switch (value) \ {