mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
allow mapnik::value_holder to store nulls, mainly to make it possible to return PyNone in python bindings
This commit is contained in:
parent
f108349f56
commit
744eca6555
@ -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…
x
Reference in New Issue
Block a user