mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 11:19:07 +08:00
[vcpkg] The static keyword at member function scope is not once-per-instance, it's once-per-function
This commit is contained in:
parent
89ba3171cc
commit
cc7ee77d90
@ -16,13 +16,13 @@ namespace vcpkg
|
||||
|
||||
const std::regex& BuildType::crt_regex() const
|
||||
{
|
||||
static const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
|
||||
const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
|
||||
return r;
|
||||
}
|
||||
|
||||
const std::string& BuildType::toString() const
|
||||
{
|
||||
static const std::string s = Strings::format("[%s,%s]", to_string(this->m_config), to_string(this->m_linkage));
|
||||
const std::string s = Strings::format("[%s,%s]", to_string(this->m_config), to_string(this->m_linkage));
|
||||
return s;
|
||||
}
|
||||
|
||||
@ -153,7 +153,7 @@ namespace vcpkg
|
||||
|
||||
const std::regex& OutdatedDynamicCrt::crt_regex() const
|
||||
{
|
||||
static const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
|
||||
const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user