convert_to: generic conversion between unrelated types

16 Mar
2009
16 Mar
'09
10:33 p.m.
Hi, I need to convert to two unrelated types as chrono::duration and posix_time::time_duration. I have defined a generic function conver_to which use the constructor or conversion operator is the exists. Otherwise the user needs to specialize partially or completly) this function with the unrelated types. This function could be specialized with string and use Boost.StringConvert. In case there is an interest I have attached the files. Best, Vicente
5934
Age (days ago)
5934
Last active (days ago)
0 comments
1 participants
participants (1)
-
vicente.botet