use c++11 typed enum in vertex.hpp

This commit is contained in:
Dane Springmeyer 2014-12-02 08:09:36 -08:00
parent d92ba2e1b0
commit d77463d1b8

View file

@ -24,11 +24,12 @@
#define MAPNIK_VERTEX_HPP
#include <utility>
#include <cstdint>
namespace mapnik
{
enum CommandType {
enum CommandType : std::uint8_t {
SEG_END = 0,
SEG_MOVETO = 1,
SEG_LINETO = 2,
@ -44,7 +45,7 @@ struct vertex {
template <typename T>
struct vertex<T,2>
{
enum no_init_t { no_init };
enum no_init_t : std::uint8_t { no_init };
using coord_type = T;
coord_type x;