not giving error for the undefined class
-
hi
do we have class StorageType in Qt
because i was trying to compile part of visual studio c++ code in Qt for my projectthere is one line of code which goes like his
class < class StorageType > template
{}
it is not giving error for this line of code( no where in the code the class StorageType is declared/defined) so i was wondering do we have something in QtThank you
-
Hi,
Please post a complete minimal compilable code sample that shows that lack of error.
-
hi
do we have class StorageType in Qt
because i was trying to compile part of visual studio c++ code in Qt for my projectthere is one line of code which goes like his
class < class StorageType > template
{}
it is not giving error for this line of code( no where in the code the class StorageType is declared/defined) so i was wondering do we have something in QtThank you
@seok said in not giving error for the undefined class:
class < class StorageType > template
{
}What code is that?
Is this the real code you want to compile?
Shouldn't it be liketemplate<class StorageType> class ...
?
If so, then there is no reason for any error, as StorageType is a template parameter. -
@seok said in not giving error for the undefined class:
class < class StorageType > template
{
}What code is that?
Is this the real code you want to compile?
Shouldn't it be liketemplate<class StorageType> class ...
?
If so, then there is no reason for any error, as StorageType is a template parameter. -
@jsulm yes it is like
template<class StorageType> class only i am extremely sorry for the mistake i have done while posting the questionsorry