ptr_container/test/issue_23.cpp
Peter Dimov ea3fa755a1 Fix regression reported in #23 (#24)
* Add test from issue 23. Refs #23.
* Fix ptr_vector regression with incomplete types. Refs #23.
* Enable CI for feature branches
2019-07-05 10:14:25 -04:00

19 lines
358 B
C++

// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/ptr_container/ptr_vector.hpp>
template<class T> struct Foo
{
static void test(boost::ptr_vector<Foo<T> >& /*t*/)
{
}
};
int main()
{
boost::ptr_vector<Foo<double> > ptr;
return 0;
}