[RUNTIME] Resolve constexpr issue in debug mode. (#5651)
authorTianqi Chen <tqchen@users.noreply.github.com>
Fri, 22 May 2020 20:36:43 +0000 (13:36 -0700)
committerGitHub <noreply@github.com>
Fri, 22 May 2020 20:36:43 +0000 (13:36 -0700)
commit896557d935999391dcc8bda001fb67d79e2f9ef8
treee32bac3d3242afa38c6af1298574e9ad6311b289
parentb26f9885bf3d71583432ecb429efa27a8f3debca
[RUNTIME] Resolve constexpr issue in debug mode. (#5651)

static constexpr is a bit weird before c++17.
They are not inlined by default and does not have symbols after compilation.
It usually isn't a problem when they are inlined(in c++17 they are inlined by default).
But will create compilation error when passed to functions that take (const)references.
This PR fixes the problem so that we can compile on debugmode.
include/tvm/runtime/container.h