• Clemens Hammacher's avatar
    Define symbols properly · a52b9cd8
    Clemens Hammacher authored
    The problem popped up when passing the constants by reference
    (https://chromium-review.googlesource.com/c/565141).
    It's a bit ugly, but, the C++11 standard requires a definition
    additionally to the existing declaration in the body of the class:
    
    9.4.2/4: If a static data member is of const literal type, its
      declaration in the class definition can specify a
      brace-or-equal-initializer in which every initializer-clause that is
      an assignment-expression is a constant expression. A static data
      member of literal type can be declared in the class definition with
      the constexpr specifier; if so, its declaration shall specify a
      brace-or-equal-initializer in which every initializer-clause that i
      an assignment-expression is a constant expression. [Note: In both
      these cases, the member may appear in constant expressions. — end
      note] The member shall still be defined in a namespace scope if it is
      odr-used (3.2) in the program and the namespace scope definition shall
      not contain an initializer.
    
    Drive-by: Make the static constants constexpr.
    
    R=bmeurer@chromium.org
    
    Change-Id: Idc3d20bf2adf31d874c23ff8bfec52437789160a
    Reviewed-on: https://chromium-review.googlesource.com/567506Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#46599}
    a52b9cd8
Name
Last commit
Last update
..
OWNERS Loading commit data...
allocation-tracker.cc Loading commit data...
allocation-tracker.h Loading commit data...
circular-queue-inl.h Loading commit data...
circular-queue.h Loading commit data...
cpu-profiler-inl.h Loading commit data...
cpu-profiler.cc Loading commit data...
cpu-profiler.h Loading commit data...
heap-profiler.cc Loading commit data...
heap-profiler.h Loading commit data...
heap-snapshot-generator-inl.h Loading commit data...
heap-snapshot-generator.cc Loading commit data...
heap-snapshot-generator.h Loading commit data...
profile-generator-inl.h Loading commit data...
profile-generator.cc Loading commit data...
profile-generator.h Loading commit data...
profiler-listener.cc Loading commit data...
profiler-listener.h Loading commit data...
sampling-heap-profiler.cc Loading commit data...
sampling-heap-profiler.h Loading commit data...
strings-storage.cc Loading commit data...
strings-storage.h Loading commit data...
tick-sample.cc Loading commit data...
tick-sample.h Loading commit data...
tracing-cpu-profiler.cc Loading commit data...
tracing-cpu-profiler.h Loading commit data...
unbound-queue-inl.h Loading commit data...
unbound-queue.h Loading commit data...