Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[time.syn][time.zone] Various editorial fixes #2028

Merged
merged 1 commit into from Apr 13, 2018

Conversation

timsong-cpp
Copy link
Contributor

  • Add missing semicolons.
  • Write out operator!= for zoned_time. [operators] does not apply because this comparison is heterogeneous (can have different Duration types).
  • Fixes TimeZonePtr2-related typos in zoned_time.

@tkoeppe
Copy link
Contributor

tkoeppe commented Apr 13, 2018

Looks good to me, thanks! I've asked Howard to take a look.

Copy link

@HowardHinnant HowardHinnant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks much!

@tkoeppe tkoeppe merged commit b92f091 into cplusplus:master Apr 13, 2018
@timsong-cpp timsong-cpp deleted the time_fixes branch April 13, 2018 23:19
@@ -27272,7 +27272,7 @@
\remarks
This constructor does not participate in overload resolution unless
\begin{codeblock}
declval<TimeZonePtr&>()->to_sys(local_time<Duration>{})
decltype(declval<TimeZonePtr&>()->to_sys(local_time<Duration>{}))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need / want a decltype here? "is (implicitly) convertible to" is defined for an expression and a destination type, not for a source type and a destination type (this actually matters in some cases, such as when the source expression is a bit-field and the destination is a reference type -- but probably not in this case).

I've opened #2029 for the general problem with the library using the meaningless term "is convertible to".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mostly wanted local consistency and to avoid suggesting that the expression is actually evaluated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants