allow mapnik::value_holder to store nulls, mainly to make it possible to return PyNone in python bindings
This commit is contained in:
parent
8d3b990fbd
commit
437f71cdef
1 changed files with 5 additions and 2 deletions
|
@ -23,19 +23,22 @@
|
|||
#ifndef MAPNIK_PARAMS_HPP
|
||||
#define MAPNIK_PARAMS_HPP
|
||||
|
||||
// mapnik
|
||||
// boost
|
||||
#include <boost/variant.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/none.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
// mapnik
|
||||
#include <mapnik/value.hpp>
|
||||
|
||||
// stl
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
namespace mapnik
|
||||
{
|
||||
typedef boost::variant<int,double,std::string> value_holder;
|
||||
typedef boost::variant<value_null,int,double,std::string> value_holder;
|
||||
typedef std::pair<const std::string, value_holder> parameter;
|
||||
typedef std::map<const std::string, value_holder> param_map;
|
||||
|
||||
|
|
Loading…
Reference in a new issue