Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Issue 367063006: Move logging.h's definitions of operator<< into namespace std. (Closed)

Created:
6 years, 5 months ago by Jeffrey Yasskin
Modified:
4 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, erikwright+watch_chromium.org, Ryan Sleevi, aboxhall
Project:
chromium
Visibility:
Public.

Description

Move logging.h's definitions of operator<< into namespace std. See the bug for a more detailed discussion of the problem when we don't make this accessible through ADL. BUG=391117 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281864

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add a // namespace std. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -7 lines) Patch
M base/files/file_path_watcher_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M base/logging.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M base/logging.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/logging_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M base/test/launcher/test_results_tracker.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M net/quic/quic_protocol.h View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Jeffrey Yasskin
Happy July 4! PTAL when you get a chance, probably Monday or later.
6 years, 5 months ago (2014-07-02 23:58:56 UTC) #1
Nico
I don't think undefined behavior is better than a few using statements. Pasting the compiler ...
6 years, 5 months ago (2014-07-03 00:03:39 UTC) #2
awong
Yeah...I kinda agree with thakis here. While this works, it doesn't seem to be solving ...
6 years, 5 months ago (2014-07-03 00:06:22 UTC) #3
Ryan Sleevi
Yeah, the problem seems to come up maybe once a year (judging by echelog and ...
6 years, 5 months ago (2014-07-03 00:31:16 UTC) #4
Jeffrey Yasskin
The using's aren't really distasteful at all. I wrote the CL because https://codereview.chromium.org/300573002/ got blocked ...
6 years, 5 months ago (2014-07-03 00:32:30 UTC) #5
awong
How badly do you want to push for this? I'm leaning towards not commit and ...
6 years, 5 months ago (2014-07-03 00:57:05 UTC) #6
Jeffrey Yasskin
I'd be willing to try to delete the operators. I think this sort of language ...
6 years, 5 months ago (2014-07-03 01:02:10 UTC) #7
awong
I started a thread to poll the full set of base owners, but it turned ...
6 years, 5 months ago (2014-07-07 22:39:25 UTC) #8
Nico
I'm on the "not worth it" side, but weakly. If awong or willchan want to ...
6 years, 5 months ago (2014-07-08 00:03:19 UTC) #9
Jeffrey Yasskin
On Mon, Jul 7, 2014 at 5:03 PM, <thakis@chromium.org> wrote: > I'm on the "not ...
6 years, 5 months ago (2014-07-08 00:31:40 UTC) #10
awong
LGTM Eng time discussing is starting to outweight eng time lost due to bugs. https://codereview.chromium.org/367063006/diff/1/base/logging.h ...
6 years, 5 months ago (2014-07-08 00:33:42 UTC) #11
willchan no longer on Chromium
LGTM Nico, if this comes back to bite us, I will award you 1 "I ...
6 years, 5 months ago (2014-07-08 00:35:48 UTC) #12
willchan no longer on Chromium
Haha, I always forget to use the web app to publish a LGTM.
6 years, 5 months ago (2014-07-08 00:36:14 UTC) #13
awong
jyasskin: Just remember to commit manually, no redo of the try server, and then go ...
6 years, 5 months ago (2014-07-08 00:38:34 UTC) #14
Jeffrey Yasskin
On Mon, Jul 7, 2014 at 5:38 PM, Albert J. Wong (王重傑) <ajwong@chromium.org> wrote: > ...
6 years, 5 months ago (2014-07-08 00:42:39 UTC) #15
Ryan Sleevi
Say hi to willchan while you're there, if you can find him. On Mon, Jul ...
6 years, 5 months ago (2014-07-08 00:49:53 UTC) #16
brettw
When do we have wchar's floating around. If this was about char16/string16's it would make ...
6 years, 5 months ago (2014-07-08 06:13:49 UTC) #17
Jeffrey Yasskin
On 2014/07/08 06:13:49, brettw wrote: > When do we have wchar's floating around. If this ...
6 years, 5 months ago (2014-07-08 15:46:55 UTC) #18
Jeffrey Yasskin
The CQ bit was checked by jyasskin@chromium.org
6 years, 5 months ago (2014-07-08 17:32:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/367063006/20001
6 years, 5 months ago (2014-07-08 17:33:52 UTC) #20
commit-bot: I haz the power
Change committed as 281864
6 years, 5 months ago (2014-07-08 23:03:10 UTC) #21
mitulblues
4 years, 5 months ago (2016-07-07 03:19:03 UTC) #22
Message was sent while issue was closed.
On 2014/07/03 00:03:39, Nico wrote:
> I don't think undefined behavior is better than a few using statements.
Pasting
> the compiler error into google hopefully will find a previous thread about
this.
> (If not, paste the error you're seeing into a bug and reference that bug from
a
> CL that adds the using statement to the test.)

Powered by Google App Engine
This is Rietveld 408576698