use c++11 typed enum in vertex.hpp
This commit is contained in:
parent
d92ba2e1b0
commit
d77463d1b8
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue