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

Issue 1812: Just by implementing a destructor (even if it's not doing anything), MSVC wil... (Closed)

Created:
12 years, 3 months ago by Dean McNamee
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai, M-A Ruel
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Just by implementing a destructor (even if it's not doing anything), MSVC will register a static initializer as to register the empty destructor. Pretty awesome. Verified that the c++ initializer is no longer in the __xc_a array. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=1841

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M base/lazy_instance.h View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Dean McNamee
Compilers are awesome.
12 years, 3 months ago (2008-09-08 15:16:40 UTC) #1
M-A Ruel
lgtm
12 years, 3 months ago (2008-09-08 15:19:47 UTC) #2
Mark Mentovai
12 years, 3 months ago (2008-09-08 15:25:59 UTC) #3
LGTM

Maybe we should also revise (and upstream) the comment about LinkerInitialized
in basictypes.h.

Powered by Google App Engine
This is Rietveld 408576698