demo/viewer - use std::optional
This commit is contained in:
parent
61cb187dbb
commit
84cd5864e7
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ layer_info_dialog::layer_info_dialog(mapnik::layer& lay, QWidget* parent)
|
||||||
int index = 0;
|
int index = 0;
|
||||||
for (pos = ps.begin(); pos != ps.end(); ++pos)
|
for (pos = ps.begin(); pos != ps.end(); ++pos)
|
||||||
{
|
{
|
||||||
boost::optional<std::string> result;
|
std::optional<std::string> result;
|
||||||
mapnik::util::apply_visitor(mapnik::value_extractor_visitor<std::string>(result), pos->second);
|
mapnik::util::apply_visitor(mapnik::value_extractor_visitor<std::string>(result), pos->second);
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue