I have several dependent template instances. I usually just post an ad, but I don’t understand how this is possible. Here is an example
#include <tuple>
#include <memory>
using Tuple = std::tuple<int,TupleContainer>;
using TupleContainer = std::unique_ptr<Tuple>;
int main()
{
return 0;
}
It is impossible to record Tuple
first because of the need TupleContainer
, it cannot record TupleContainer
first because of the need Tuple
.
How can I forward the declaration of one of the definitions used?
source
share