Is is possible to declare variable to be able call constructor (e.g. with parameter), of course parameter somehow should be pointed out within declaration.
Base- no, only within inheritance. Maybe you understand my question wrong. I need to declare variable not in heap (via new operator) but do it statically
e.g.
static TVectorNeighbs<27> vnb;
The problem is TVectorNeighbs constructor has parameter i should point out in within declaration.
// maybe what you're looking for?
SomeClass object(15); // <- calling a constructor that takes a param
// similar call with new:
SomeClass* object = new SomeClass(15);