mapnik/mapnik — Issue #985: easy to misuse mapnik::to_expression_string()
Author: springmeyer
Created: 2011-12-06 00:07:08+00:00
State: open

Shouldn't passing an expression_ptr to mapnik::to_expression_string() result in a compile error rather than just returning 'true'?

```
#include
#include
#include
#include
#include

// boost
#include

/*

$ clang++ -o test t.cpp `mapnik-config --cflags --ldflags --libs --dep-libs`;./test
true
'literal'

*/

int main()
{
mapnik::expression_ptr expr = mapnik::parse_expression("'literal'");
std::clog << mapnik::to_expression_string(expr) << "\n";
std::clog << mapnik::to_expression_string(*expr) << "\n";
}

```