[Top][All Lists]
[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
- Datetime suggestion.,
Andrey Kulikov <=