~stewart/drizzle/haildb-2.3-athens-updates

« back to all changes in this revision

Viewing changes to drizzled/util/convert.h

  • Committer: lbieber
  • Date: 2010-10-05 22:23:12 UTC
  • mfrom: (1813.1.4 build)
  • Revision ID: lbieber@orisndriz08-20101005222312-weuq0ardk3gcryau
Merge Travis - 621861 - convert structs to classes
Merge Billy - 621331 - Replace use of stringstream with boost::lexical_cast
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle
Merge Andrew - fix bug 653300 - Syntax error on inport of a SQL file produced by drizzledump

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>
24
25
#include <string>
25
26
#include <iostream>
26
27
#include <sstream>
31
32
template <class T>
32
33
std::string to_string(T t)
33
34
{
34
 
  std::ostringstream o;
35
 
  o << t;
36
 
  return o.str();
 
35
  return boost::lexical_cast<std::string>(t);
37
36
}
38
37
 
39
38
template <class T>