c++11 doesn't support std::size so use obj.size() instead

release/4.3a0
Gerry Chen 2021-12-01 16:20:51 -05:00
parent 81f1d93158
commit e037fa1bdb
No known key found for this signature in database
GPG Key ID: E9845092D3A57286
1 changed files with 1 additions and 1 deletions

View File

@ -816,7 +816,7 @@ public:
template <typename CONTAINER> template <typename CONTAINER>
NoiseModelFactorN(const SharedNoiseModel& noiseModel, CONTAINER keys) NoiseModelFactorN(const SharedNoiseModel& noiseModel, CONTAINER keys)
: Base(noiseModel, keys) { : Base(noiseModel, keys) {
assert(std::size(keys) == sizeof...(VALUES)); assert(keys.size() == sizeof...(VALUES));
} }
~NoiseModelFactorN() override {} ~NoiseModelFactorN() override {}