A
A
// This works
ABC( std::vector<__int64>(1,0x1234i64) );
function ABC(const std::vector<__int64> &vect)
{
// read from vect
for (unsigned i = 0; i < vect.size(); i++)
{
// Call function DEF
DEF(vect);
}
}
The question - if I do it like this - will there be any drawbacks? I simply
need to use vector once without defining a variable - that's it.
ABC( std::vector<__int64>(1,0x1234i64) );
function ABC(const std::vector<__int64> &vect)
{
// read from vect
for (unsigned i = 0; i < vect.size(); i++)
{
// Call function DEF
DEF(vect);
}
}
The question - if I do it like this - will there be any drawbacks? I simply
need to use vector once without defining a variable - that's it.