Commit 857ded12 authored by Alex Deymo's avatar Alex Deymo Committed by Treehugger Robot
Browse files

Define static members outside the template class.

When defining a static const member of a template class,
MyClass<T1>::some_static_member and MyClass<T2>::some_static_member
could be different values. We define these values inline in the class,
but ASan complains about an undefined reference.

Since those constants don't depend on the type, This patch moves them
to plain constants in the anonymous namespace.

Bug: chromium:611405
TEST=USE="clang asan" emerge-link update_engine

Change-Id: I6a1becb87f186cca9341ff4dbaf5eb2b7ba456a6
parent a479a4d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment