There is no need to specialize more than ostream : it only makes it
impossible to use cerr or cout as a parameter to str_map.
Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
using namespace std;
int get_str_map(const string &str,
- stringstream &ss,
+ ostream &ss,
map<string,string> *str_map)
{
json_spirit::mValue json;
* @return **0** on success or a -EINVAL on error.
*/
extern int get_str_map(const std::string &str,
- std::stringstream &ss,
+ std::ostream &ss,
std::map<std::string,std::string> *str_map);
#endif