[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 7343f36 1/5: Improve concinnity

From: Greg Chicares
Subject: [lmi-commits] [lmi] master 7343f36 1/5: Improve concinnity
Date: Tue, 7 Feb 2017 04:40:18 +0000 (UTC)

branch: master
commit 7343f36ac4e0794bcbf50034898017b38f183d68
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Improve concinnity
    Of the two parallel InputSequence(std::vector<T> const&) ctors,
    one specified 'value_is_keyword' explicitly, but the other did not
    (because its default was correct in that case). Now both specify
    it explicitly. Removing this gratuitous difference makes this
    | reuse the code of the 3 ctors taking vectors
    easier to pursue.
 input_sequence.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/input_sequence.cpp b/input_sequence.cpp
index 97a344f..101fa26 100644
--- a/input_sequence.cpp
+++ b/input_sequence.cpp
@@ -801,6 +801,7 @@ InputSequence::InputSequence(std::vector<double> const& v)
     ValueInterval dummy;
+    dummy.value_is_keyword = false;
     double prior_value = v.empty() ? 0.0 : v.front();
     double current_value = prior_value;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]