$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [Q] extendig lexical cast with custom classes
From: V S P (toreason_at_[hidden])
Date: 2009-03-27 20:11:55
I developed a class cmoney_t
and would like to use it uniformly
with all the other datatypes I am using
One of the things I would like to use
is
boost::lexical_cast<std::string> (const cmoney_t& in)
However, when I simply just try to specialize
the tempalte function lexical_cast
it tells me that I cannot define that function
within my namepsace
(I have my own namespace)
so wanted to know if there is a way to
extend lexical_cast to support my custom classes
thanks in advance
-- V S P toreason_at_[hidden] -- http://www.fastmail.fm - Send your email first class