mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-09-28 19:05:49 +08:00
Remove StaticTemplateString::ToString()
This commit is contained in:
parent
74d2631351
commit
9bfe775524
|
@ -157,11 +157,6 @@ struct @ac_windows_dllexport@ StaticTemplateString {
|
|||
return do_not_use_directly_.length_ == 0;
|
||||
}
|
||||
|
||||
// Use sparingly. Converting to a string loses information about the
|
||||
// id of the template string, making operations require extra hash
|
||||
// computations.
|
||||
inline std::string ToString() const;
|
||||
|
||||
// Allows comparisons of StaticTemplateString objects as if they were
|
||||
// strings. This is useful for STL.
|
||||
inline bool operator==(const StaticTemplateString& x) const;
|
||||
|
@ -318,11 +313,6 @@ inline bool StaticTemplateString::Hasher::operator()(
|
|||
return TemplateIdHasher()(id_a, id_b);
|
||||
}
|
||||
|
||||
inline std::string StaticTemplateString::ToString() const {
|
||||
return std::string(do_not_use_directly_.ptr_,
|
||||
do_not_use_directly_.length_);
|
||||
}
|
||||
|
||||
inline bool StaticTemplateString::operator==(
|
||||
const StaticTemplateString& x) const {
|
||||
return (do_not_use_directly_.length_ == x.do_not_use_directly_.length_ &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user