Hello,

current HEAD of the pulseview fails to compile due to this subtle bug/typo when resetting the content of a shared_ptr. Not much to explain :)

Roman Beránek

commit b307490345c860960c7092aca9a7e1891e0de26f
Author: Roman Beránek <roman.bera...@meetangee.com>
Date:   Wed Jan 18 20:21:58 2017 +0000

    Fixed invocation of shared_ptr's reset() method

diff --git a/pv/devices/inputfile.cpp b/pv/devices/inputfile.cpp
index 7c981f1..e9ffcd3 100644
--- pv/devices/inputfile.cpp
+++ new/pv/devices/inputfile.cpp
@@ -91,7 +91,7 @@ void InputFile::run()
        if (!f) {
                // Previous call to run() processed the entire file already
                f = new std::ifstream(file_name_, std::ios::binary);
-               input_->reset();
+               input_.reset();
        }
 
        interrupt_ = false;

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to