Search:

Type: Posts; User: DoMeN

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,149

    Works now. Thanks for the answer.

    Works now. Thanks for the answer.
  2. Replies
    2
    Views
    1,149

    member function specialization

    Hi,

    I have a problem with templated member function ( partial? ) specialization.

    .h:


    class a : public b< int >
    {
    public:
  3. Replies
    29
    Views
    5,260

    I intend to keep the null character now that I...

    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.
  4. Replies
    29
    Views
    5,260

    OK now I filaly get it. My stupid mistake that I...

    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...
  5. Replies
    29
    Views
    5,260

    I'm not saying that it should, I yust added that...

    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...
  6. Replies
    29
    Views
    5,260

    c_str like function implementation

    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;
  7. Replies
    1
    Views
    1,267

    template variables in function calls

    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...
  8. Thanks! This makes the code a bit uglyer but...

    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.
  9. problem with templates and parent variables accessing

    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;
  10. Replies
    2
    Views
    1,437

    Thanks for the quick reply. This was exactly what...

    Thanks for the quick reply. This was exactly what I was looking for :)
  11. Replies
    2
    Views
    1,437

    global variables in c++

    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...
Results 1 to 11 of 11