[odb-users] ODB compiler support for variable templates?
Hales, Steve
Steve.Hales at garmin.com
Fri Jul 29 21:01:41 EDT 2016
The ODB 2.4.0 compiler on Mac OS fails to compile the code below:
// Begin code
#include <string>
template <typename CharT>
static const auto theGuidRegexStr = std::basic_string<CharT>{};
template <>
static const auto theGuidRegexStr<char> = std::basic_string<char>
{
"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
};
template <>
static const auto theGuidRegexStr<wchar_t> = std::basic_string<wchar_t>
{
L"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
};
// End code
Does the 2.4.0 compiler support C++ 14 variable templates?
Thanks,
Steve
________________________________
CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient(s) and contain information that may be Garmin confidential and/or Garmin legally privileged. If you have received this email in error, please notify the sender by reply email and delete the message. Any disclosure, copying, distribution or use of this communication (including attachments) by someone other than the intended recipient is prohibited. Thank you.
More information about the odb-users
mailing list