bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Datetime suggestion.


From: Andrey Kulikov
Subject: Datetime suggestion.
Date: Thu, 28 Aug 2003 11:26:01 +0400

Hi All!

OS: Windows XP
Compiller: Visual Studio 2003

Problem: Class ost::Datetime has a constructor

Datetime(char *str, size_t size = 0);

It's make not possible to use it like this:

string s="10/10/1971 12:34";
Datetime dt = Datetime(s.c_str());

because string::c_str() return const char*.

Solution: Declare the ost::Datetime's constructor like this:


Datetime(const char *str, size_t size = 0);

  

-- 
Best regards,
 Andrey





reply via email to

[Prev in Thread] Current Thread [Next in Thread]