User Activity

  • Posted a comment on discussion General Discussion on cppcheck

    Ok a quick follow up, while that works, it still does not in the first example I gave. Here is distilled example of the template case: template<typename T, bool C = std::is_copy_constructible<T>::value> class Observable { public: Observable() {} private: T value_; }; class Bah { public: Bah() {}; private: Observable<int> tValue_; }; This does not give a warning about tValue not being initialized. But if I remove the second parameter of the template (bool C), it does warn about tValue not being initialized....

  • Posted a comment on discussion General Discussion on cppcheck

    That works, thanks!!

  • Posted a comment on discussion General Discussion on cppcheck

    That works, thanks!!

  • Posted a comment on discussion General Discussion on cppcheck

    I distilled the problem further: class Foo { private: int m_nValue; public: Foo() {}; Foo(int value) : m_nValue(value) {} int GetValue() { return m_nValue; } }; class Bar { public: Bar(){} void DoSomething() { Foo foo; } }; This does not generate an unitialized variable warning, but when I comment out: //Foo(int value) : m_nValue(value) {} it does

  • Posted a comment on discussion General Discussion on cppcheck

    Hi, I am evaluating cppcheck to see if will find uninitialized variables members/variables... of a templated class type. But it doesn't seem to. Invoked like so: /usr/local/bin/cppcheck --enable=all --xml-version=2 Here is my test code: enum class ViewMode { One = 1, Two = 2, Three = 3, Four = 4 }; class TestClass { public: TestClass() {} }; template<typename T, bool C = std::is_copy_constructible<T>::value> class TemplateTest { public: TemplateTest() {} TemplateTest(const T& value) : value_(value)...

  • Posted a comment on discussion Open Discussion on Boost C++ Libraries

    Hi, I'm trying to build Boost.test on windows version 1.62.0. I'm building --with-test...

View All

Personal Data

Username:
aciereszko
Joined:
2016-12-21 03:27:05

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB