Click here to Skip to main content
15,503,808 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 12:35
mveGreg Utas17-Mar-21 12:35 
GeneralRe: ISO 8601 and C++ Pin
megaadam17-Mar-21 13:39
professionalmegaadam17-Mar-21 13:39 
GeneralRe: ISO 8601 and C++ Pin
Rick York17-Mar-21 13:55
mveRick York17-Mar-21 13:55 
GeneralRe: ISO 8601 and C++ Pin
CPallini18-Mar-21 3:58
mveCPallini18-Mar-21 3:58 
GeneralRe: ISO 8601 and C++ Pin
Rick York18-Mar-21 6:45
mveRick York18-Mar-21 6:45 
GeneralRe: ISO 8601 and C++ Pin
den2k8818-Mar-21 23:56
professionalden2k8818-Mar-21 23:56 
GeneralRe: ISO 8601 and C++ Pin
megaadam19-Mar-21 2:08
professionalmegaadam19-Mar-21 2:08 
GeneralRe: ISO 8601 and C++ Pin
den2k8819-Mar-21 2:28
professionalden2k8819-Mar-21 2: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 2:10
mvaShao Voon Wong18-Mar-21 2:10 
GeneralRe: ISO 8601 and C++ Pin
den2k8818-Mar-21 23:51
professionalden2k8818-Mar-21 23:51 
GeneralRe: ISO 8601 and C++ Pin
Shao Voon Wong19-Mar-21 0:20
mvaShao Voon Wong19-Mar-21 0:20 
GeneralRe: ISO 8601 and C++ Pin
CPallini18-Mar-21 4:02
mveCPallini18-Mar-21 4:02 
GeneralRe: ISO 8601 and C++ Pin
den2k8819-Mar-21 0:02
professionalden2k8819-Mar-21 0:02 
GeneralAnyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 5:36
mveW Balboos, GHB17-Mar-21 5:36 
GeneralRe: Anyone Else Notice This? Pin
Slacker00717-Mar-21 5:40
professionalSlacker00717-Mar-21 5:40 
GeneralRe: Anyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 5:48
mveW Balboos, GHB17-Mar-21 5:48 
GeneralRe: Anyone Else Notice This? Pin
PIEBALDconsult17-Mar-21 5:47
professionalPIEBALDconsult17-Mar-21 5:47 
GeneralRe: Anyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 5:51
mveW Balboos, GHB17-Mar-21 5:51 
GeneralRe: Anyone Else Notice This? Pin
Richard MacCutchan17-Mar-21 5:58
mveRichard MacCutchan17-Mar-21 5:58 
GeneralRe: Anyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 6:02
mveW Balboos, GHB17-Mar-21 6:02 
GeneralRe: Anyone Else Notice This? Pin
Mike Hankey17-Mar-21 6:12
professionalMike Hankey17-Mar-21 6:12 
GeneralRe: Anyone Else Notice This? Pin
den2k8817-Mar-21 6:13
professionalden2k8817-Mar-21 6:13 
GeneralRe: Anyone Else Notice This? Pin
musefan17-Mar-21 6:16
musefan17-Mar-21 6:16 
GeneralRe: Anyone Else Notice This? Pin
W Balboos, GHB17-Mar-21 6:44
mveW Balboos, GHB17-Mar-21 6:44 
GeneralRe: Anyone Else Notice This? Pin
Slacker00717-Mar-21 8:39
professionalSlacker00717-Mar-21 8: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.


Straw Poll

How would you describe your current job?
Fighting dragons everyday or clicking the same boxes on the same forms, day after day?
  Results   391 votes