Works now. Thanks for the answer.
Type: Posts; User: DoMeN
Works now. Thanks for the answer.
Hi,
I have a problem with templated member function ( partial? ) specialization.
.h:
class a : public b< int >
{
public:
I intend to keep the null character now that I know that I can't easily write it otherwise.
Thanks to all for the explanations.
OK now I filaly get it. My stupid mistake that I thought that this is wrong because of the pointer to a constant string ( didn't know that that was legal).
I once had some problems in one test...
I'm not saying that it should, I yust added that so that if there would be a possibility of creating a pointer to a string + some aditional characters without malloc, return it without the bad...
Hi...
Does anyone know how to implement a function that returns a const char* for use in this situation:
class foo
{
protected:
int i_size;
Hi, I know that templates are precompile commands but still I was wondering if there is a way to use template class variables ( pointers or something ) in function calls without having to provide the...
Thanks!
This makes the code a bit uglyer but if it's in the standard then I guess that it's so for a good reason.
Regards, Domen.
Hi, I don't know why my chiled class cannot access parent's variables.
I am using mingw 5.1.3 toolchain.
This works:
#include <iostream>
using namespace std;
Thanks for the quick reply. This was exactly what I was looking for :)
Hi,
I was wondering how to create a variable in one file and then use it in all the files without the redeclaration of the variable with extern in every file that uses it.
I have seen this so I...