~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/convert.h

  • Committer: Joseph Daly
  • Date: 2010-09-12 02:04:41 UTC
  • mto: (1759.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1760.
  • Revision ID: jdaly@rx7-20100912020441-3hc8uahm6ar25i52
fix spacing

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_UTIL_CONVERT_H
22
22
#define DRIZZLED_UTIL_CONVERT_H
23
23
 
24
 
#include <boost/lexical_cast.hpp>
25
24
#include <string>
26
25
#include <iostream>
27
26
#include <sstream>
32
31
template <class T>
33
32
std::string to_string(T t)
34
33
{
35
 
  return boost::lexical_cast<std::string>(t);
 
34
  std::ostringstream o;
 
35
  o << t;
 
36
  return o.str();
36
37
}
37
38
 
38
39
template <class T>