Search:

Type: Posts; User: tra86

Search: Search took 0.02 seconds.

  1. Hi. I found the problem and as you said, the...

    Hi. I found the problem and as you said, the problem was elsewhere; marked in the following code.



    template <typename T, std::size_t NDimensions>
    class Vector
    {
    public:
    typedef T...
  2. GCC:Static(fixed-length) array in template class

    Hi.

    I'm using GCC's c++ compiler, and when attempting to create a template class containing an N-length array;



    template <int N>
    class C
    {
    public:
  3. Thread: Casting

    by tra86
    Replies
    3
    Views
    1,021

    Casting

    Hi.

    Does static casting really gve any overhead, when no real "conversion" is performed?

    Consider the following:


    int i1 = 1;
    char *pc = (char*)&i1;
    int i2 = *(int*)pc;
Results 1 to 3 of 3