File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -210,8 +210,7 @@ class TropicalWeightTpl : public FloatWeightTpl<T> {
210210
211211 TropicalWeightTpl () noexcept : FloatWeightTpl<T>() {}
212212
213- // TODO: Enable "explicit" when dependent code is resolved.
214- /* explicit */ constexpr TropicalWeightTpl (T f) : FloatWeightTpl<T>(f) {}
213+ explicit constexpr TropicalWeightTpl (T f) : FloatWeightTpl<T>(f) {}
215214
216215 static constexpr TropicalWeightTpl<T> Zero () {
217216 return TropicalWeightTpl<T>(Limits::PosInfinity ());
@@ -434,8 +433,7 @@ class LogWeightTpl : public FloatWeightTpl<T> {
434433
435434 LogWeightTpl () noexcept : FloatWeightTpl<T>() {}
436435
437- // TODO: Add explicit when nlp/grm/sfst is updated.
438- /* explicit */ constexpr LogWeightTpl (T f) : FloatWeightTpl<T>(f) {}
436+ explicit constexpr LogWeightTpl (T f) : FloatWeightTpl<T>(f) {}
439437
440438 static constexpr LogWeightTpl Zero () {
441439 return LogWeightTpl (Limits::PosInfinity ());
You can’t perform that action at this time.
0 commit comments