Closed kkumar45 closed 5 years ago
Can anyone reproduce it?
Yep, I'm seeing it.
It appears to me that the basic problem is that boost::ptr_vector<Foo<T>>
is not a complete type when you are trying to use it (you're still defining Foo
).
Verified that it fails with Boost 1.66.0 as well.
This commit appears to be the behavior change: https://github.com/boostorg/ptr_container/commit/d1a588b25d2d7d510dadcf5d839c77b0998c58ab
See PR #24.
I am moving from Boost 1.65.1 to 1.70.0. My project has the usage of "ptr_vector" in function parameter. The build is failing in 1.70.0. I have written a program that demonstrates the problem in using "ptr_vector" in function parameter.
Command used for compiling:
g++ -std=c++14 ptr_vector_test.cpp -Iboost_1_70_0
Test Program:
Error (On Linux : gcc 6.3.0)
Clang command:
clang++ -std=c++14 ptr_vector_test.cpp -Iboost_1_70_0
Error( On Clang):