Change-Id: Id237fe33a435be9ab7b28ad223e00bca23a95fc9
public:
template<typename... Args>
DefineException(const char *path, const char *function, int line, const Args&... args)
public:
template<typename... Args>
DefineException(const char *path, const char *function, int line, const Args&... args)
- : Exception(path, function, line, Stringify()(args...))
+ : Exception(path, function, line, Stringify::Merge(args...))
{
Before(m_path, m_function, m_line, DefineException<Error,Stringify,Before,After>::error(), m_message);
}
{
Before(m_path, m_function, m_line, DefineException<Error,Stringify,Before,After>::error(), m_message);
}
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
template <>
class StringifyBasic<false> {
template <>
class StringifyBasic<false> {
+ StringifyBasic() = delete;
- std::string operator()() {
+ static std::string Merge() {
return std::string();
}
template <typename... Args>
return std::string();
}
template <typename... Args>
- std::string operator()(const Args&...){
+ static std::string Merge(const Args&...){
return std::string();
}
};
template <>
class StringifyBasic<true> {
return std::string();
}
};
template <>
class StringifyBasic<true> {
- void concatenate(std::ostringstream&) {}
+ StringifyBasic() = delete;
+
+ static void Concatenate(std::ostringstream&) {}
template <typename t, typename... Args>
template <typename t, typename... Args>
- void concatenate(std::ostringstream& stream, const t& arg1, const Args&... args) {
+ static void Concatenate(std::ostringstream& stream, const t& arg1, const Args&... args) {
- concatenate(stream, args...);
+ Concatenate(stream, args...);
- std::string operator()() {
+ static std::string Merge() {
return std::string();
}
template <typename T, typename... Args>
return std::string();
}
template <typename T, typename... Args>
- std::string operator()(const T& arg1, const Args&... args){
+ static std::string Merge(const T& arg1, const Args&... args) {
std::ostringstream stream;
std::ostringstream stream;
- concatenate(stream, arg1, args...);
+ Concatenate(stream, arg1, args...);
return stream.str();
}
};
return stream.str();
}
};
template <typename... Args>
std::runtime_error io_exception(const Args&... args)
{
template <typename... Args>
std::runtime_error io_exception(const Args&... args)
{
- return std::runtime_error(Stringify()(args...));
+ return std::runtime_error(Stringify::Merge(args...));
};
} // namespace anonymous
};
} // namespace anonymous