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...
Type: Posts; User: tra86
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...
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:
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;