base: Narrow the applicability of the default to_number.
authorGabe Black <gabe.black@gmail.com>
Wed, 21 Oct 2020 02:11:07 +0000 (19:11 -0700)
committerGabe Black <gabe.black@gmail.com>
Thu, 22 Oct 2020 22:01:16 +0000 (22:01 +0000)
commitf9bd874b7f892f6755e9744822e7a7a8e979cf09
tree7cfb2ab3282217b09a19f034cc0be3511176a4c2
parent37146cb94237829fdce1c43e01d90199f1074086
base: Narrow the applicability of the default to_number.

That template only works for integral (except bool), floating point,
or enum types, so restrict it to those types. That makes it easier to
detect what types will work with that function.

Change-Id: Ib29a9a0ea75dd617e28bb6850d60be905f93182f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36279
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/str.hh