Click here to Skip to main content
15,868,141 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: ISO 8601 and C++ Pin
Greg Utas17-Mar-21 11:35
professionalGreg Utas17-Mar-21 11:35 
GeneralRe: ISO 8601 and C++ Pin
megaadam17-Mar-21 12:39
professionalmegaadam17-Mar-21 12:39 
GeneralRe: ISO 8601 and C++ Pin
Rick York17-Mar-21 12:55
mveRick York17-Mar-21 12:55 
GeneralRe: ISO 8601 and C++ Pin
CPallini18-Mar-21 2:58
mveCPallini18-Mar-21 2:58 
GeneralRe: ISO 8601 and C++ Pin
Rick York18-Mar-21 5:45
mveRick York18-Mar-21 5:45 
GeneralRe: ISO 8601 and C++ Pin
den2k8818-Mar-21 22:56
professionalden2k8818-Mar-21 22:56 
GeneralRe: ISO 8601 and C++ Pin
megaadam19-Mar-21 1:08
professionalmegaadam19-Mar-21 1:08 
GeneralRe: ISO 8601 and C++ Pin
den2k8819-Mar-21 1:28
professionalden2k8819-Mar-21 1:28 
ISO8601 strings also have the time zone, and what irks me is that it's a standard, why should anyone need to specify the format when it is, in fact, standard?

Besides, this
Returns an object manip of unspecified type such that, given a std::basic_istream<CharT, Traits> object is, the expression is >> manip calls from_stream (unqualified, to enable argument-dependent lookup) as follows: 

1) from_stream(is, fmt.c_str(), tp)
2) from_stream(is, fmt.c_str(), tp, std::addressof(abbrev))
3) from_stream(is, fmt.c_str(), tp,
            static_cast<std::basic_string<CharT, Traits, Alloc>*>(nullptr), &offset)
4) from_stream(is, fmt.c_str(), tp, std::addressof(abbrev), &offset).

The expression is >> manip is an lvalue of type std::basic_istream<CharT, Traits> with the value is.

These overloads only participate in overload resolution if the corresponding from_stream expression is well-formed. 

makes no sense.

What there should exist?
C++
time_t std::something::parseISO8601(std::string date);

Easy. Or the same with tm structure. Not a semiobscure infrastructure to build my own date format and parser, considering that it is an ISO standard.

So much talking about adding gazillions of functionalities to C++ (because it already has a simple syntax) to ncrease code reusability and then this.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

GeneralRe: ISO 8601 and C++ Pin
Shao Voon Wong18-Mar-21 1:10
mvaShao Voon Wong18-Mar-21 1:10 
GeneralRe: ISO 8601 and C++ Pin
den2k8818-Mar-21 22:51
professionalden2k8818-Mar-21 22:51 
GeneralRe: ISO 8601 and C++ Pin
Shao Voon Wong18-Mar-21 23:20
mvaShao Voon Wong18-Mar-21 23:20 
GeneralRe: ISO 8601 and C++ Pin
CPallini18-Mar-21 3:02
mveCPallini18-Mar-21 3:02 
GeneralRe: ISO 8601 and C++ Pin
den2k8818-Mar-21 23:02
professionalden2k8818-Mar-21 23:02 
GeneralAnyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 4:36
W Balboos, GHB17-Mar-21 4:36 
GeneralRe: Anyone Else Notice This? Pin
Slacker00717-Mar-21 4:40
professionalSlacker00717-Mar-21 4:40 
GeneralRe: Anyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 4:48
W Balboos, GHB17-Mar-21 4:48 
GeneralRe: Anyone Else Notice This? Pin
PIEBALDconsult17-Mar-21 4:47
mvePIEBALDconsult17-Mar-21 4:47 
GeneralRe: Anyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 4:51
W Balboos, GHB17-Mar-21 4:51 
GeneralRe: Anyone Else Notice This? Pin
Richard MacCutchan17-Mar-21 4:58
mveRichard MacCutchan17-Mar-21 4:58 
GeneralRe: Anyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 5:02
W Balboos, GHB17-Mar-21 5:02 
GeneralRe: Anyone Else Notice This? Pin
Mike Hankey17-Mar-21 5:12
mveMike Hankey17-Mar-21 5:12 
GeneralRe: Anyone Else Notice This? Pin
den2k8817-Mar-21 5:13
professionalden2k8817-Mar-21 5:13 
GeneralRe: Anyone Else Notice This? Pin
musefan17-Mar-21 5:16
musefan17-Mar-21 5:16 
GeneralRe: Anyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 5:44
W Balboos, GHB17-Mar-21 5:44 
GeneralRe: Anyone Else Notice This? Pin
Slacker00717-Mar-21 7:39
professionalSlacker00717-Mar-21 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.