Build fails on FreeBSD 10.0 (using clang) as follow:
[ 17%] Built target booster
[ 17%] Building CXX object CMakeFiles/cppcms.dir/src/util.cpp.o
/home/markand/cppcms-1.0.4/src/util.cpp:43:21: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char ')
case '<': output << "<"; break;
~~~~~~ ^ ~~~~~~
/usr/include/c++/v1/memory:5330:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-2>' against 'char const[5]'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/usr/include/c++/v1/string:4065:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1,="" type-parameter-0-2="">' against 'char const[5]'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/home/markand/cppcms-1.0.4/src/util.cpp:44:21: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char </char></type-parameter-0-0,></type-parameter-0-2>')
case '>': output << ">"; break;
~~~~~~ ^ ~~~~~~
/usr/include/c++/v1/memory:5330:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-2>' against 'char const[5]'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/usr/include/c++/v1/string:4065:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1,="" type-parameter-0-2="">' against 'char const[5]'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/home/markand/cppcms-1.0.4/src/util.cpp:45:21: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char ')
case '&': output << "&"; break;
~~~~~~ ^ ~~~~~~~
/usr/include/c++/v1/memory:5330:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-2>' against 'char const[6]'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/usr/include/c++/v1/string:4065:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1,="" type-parameter-0-2="">' against 'char const[6]'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/home/markand/cppcms-1.0.4/src/util.cpp:46:21: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char </char></type-parameter-0-0,></type-parameter-0-2>')
case '\"': output<<"""; break;
~~~~~~^ ~~~~~~~~
/usr/include/c++/v1/memory:5330:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-2>' against 'char const[7]'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/usr/include/c++/v1/string:4065:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1,="" type-parameter-0-2="">' against 'char const[7]'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/home/markand/cppcms-1.0.4/src/util.cpp:47:20: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'int')
default: output << c;
~~~~~~ ^ ~
/usr/include/c++/v1/memory:5330:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-2>' against 'char'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/usr/include/c++/v1/string:4065:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1,="" type-parameter-0-2="">' against 'char'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
In file included from /home/markand/cppcms-1.0.4/src/util.cpp:9:
In file included from /home/markand/cppcms-1.0.4/cppcms/util.h:12:
In file included from /usr/include/c++/v1/string:434:
In file included from /usr/include/c++/v1/algorithm:627:
In file included from /usr/include/c++/v1/memory:600:
/usr/include/c++/v1/iterator:778:28: error: invalid operands to binary expression ('ostream_type' (aka 'basic_ostream<char, std::__1::char_traits\<char=""> >') and 'int')
__out_stream_ << __value_;
~~~~~~~~~~~~~~ ^ ~~~~~~~~
/home/markand/cppcms-1.0.4/src/util.cpp:61:11: note: in instantiation of member function 'std::__1::ostream_iterator<char, char,="" std::__1::char_traits\<char=""> >::operator=' requested here
</char,>out++ = c;
^
/home/markand/cppcms-1.0.4/src/util.cpp:88:2: note: in instantiation of function template specialization 'cppcms::util::urlencode_impl<std::__1::ostream_iterator\<char, char,="" std::__1::char_traits\<char=""> > >' requested here
urlencode_impl(b,e,it);
^
/usr/include/c++/v1/memory:5330:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-2>' against 'const char'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/usr/include/c++/v1/string:4065:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1,="" type-parameter-0-2="">' against 'const char'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
In file included from /home/markand/cppcms-1.0.4/src/util.cpp:9:
In file included from /home/markand/cppcms-1.0.4/cppcms/util.h:12:
In file included from /usr/include/c++/v1/string:434:
In file included from /usr/include/c++/v1/algorithm:627:
In file included from /usr/include/c++/v1/memory:600:
/usr/include/c++/v1/iterator:780:32: error: invalid operands to binary expression ('ostream_type' (aka 'basic_ostream<char, std::__1::char_traits\<char=""> >') and 'const char_type ' (aka 'const char '))
__out_stream_ << __delim_;
~~~~~~~~~~~~~~ ^ ~~~~~~~~
/usr/include/c++/v1/memory:5330:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-2>' against 'const char </type-parameter-0-2>'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/usr/include/c++/v1/string:4065:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1,="" type-parameter-0-2="">' against 'const char *'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
7 errors generated.
*** Error code 1</type-parameter-0-0,></char,></type-parameter-0-0,></type-parameter-0-2></std::__1::ostream_iterator\<char,></char,></type-parameter-0-0,></type-parameter-0-2></char></type-parameter-0-0,></type-parameter-0-2></char></type-parameter-0-0,></type-parameter-0-2></char>
Stop.
make[2]: stopped in /home/markand/cppcms-1.0.4/build
*** Error code 1
Stop.
make[1]: stopped in /home/markand/cppcms-1.0.4/build
*** Error code 1
Stop.
make: stopped in /home/markand/cppcms-1.0.4/build
Anonymous
fixed in v1.0 branch