Rewrite enum.hpp in such a way that parseConstant can be defined generically for all enumerated types. While there, properly validated enumerated property values.
13 lines
294 B
C++
13 lines
294 B
C++
#include <mbgl/platform/log.hpp>
|
|
#include <mbgl/util/enum.hpp>
|
|
|
|
#include <iostream>
|
|
|
|
namespace mbgl {
|
|
|
|
void Log::platformRecord(EventSeverity severity, const std::string &msg) {
|
|
std::cerr << "[" << Enum<EventSeverity>::toString(severity) << "] " << msg << std::endl;
|
|
}
|
|
|
|
} // namespace mbgl
|