Fix compilation error when building with C++17 noexcept needs to be on definition in addition to the declaration Bug: 162949739 Test: Builds Change-Id: I3dbd316c81cdb5f5e7e2531e730cdd71f8ed29cb (cherry picked from commit 3d3364efdcd4bf765e66d193fae2573981d4cd79)