Mapping a non-const integral to a type5254 (3/27/2011 2:02:47 AM) I'm having a bit of a problem with the mapping a non-const integral to
a type. The code below shows my predicament:
#include
typedef enum { typeX, typeY, typeZ } Types;
class X {};
class... Marcos
Specializing std::hash<>1491 (3/25/2011 10:02:35 AM)
I want to provide a hashing functor for a class I am writing so that it
can be a key in an unordered associative container.
Let us call the class MyClass. Is it acceptable to specialize
std::hash direct... Chris
mix placement new with a standard delete2294 (3/24/2011 7:58:13 AM)
Is it legal to mix placement new with a standard delete operation? I'm
curious about the following test case:
#include
#include
#include
template
<
typename T // re... Mike
vector of struct doesn't save values1308 (3/17/2011 7:15:17 AM)
Hi there :)
I've defined a vector of struct in my header file :
struct cluster_member {
int chnum;
vector members;
};
protected:
int updateClusMember(int cid,int membernodeid);
I hav... faaamemar(1)
Question about order in Header file3272 (3/18/2011 6:49:53 AM)
Dear all:
In C++ I have the following problem. I define a class CA and a struct
B as follows
struct MyStruct
{
CA::TestEnum testEnum;
int a;
}
class CA
{
public:
enum TestEnum{TEST_1,... MBALOVER