Mapping a non-const integral to a typeMarcos 5 173 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 { ...
Specializing std::hash<>Chris 1 255
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 clas...
mix placement new with a standard deleteMike 2 165
Is it legal to mix placement new with a standard delete operation? I'm
curious about the following test case:
#include
#include
#include
...
Question about order in Header fileMBALOVER 3 169
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;
...
vector of struct doesn't save valuesfaaamemar 1 188
Hi there :)
I've defined a vector of struct in my header file :
struct cluster_member {
int chnum;
vector members;
};
protected:
i...
static_assert and a single-argument template objectPGK 0 153 Hi there,
I was looking for a way to ensure a function like test:
template void test(T1 a, T2 b) {}
would only permit T1 and T2 args either ...
Available C++ Libraries FAQnikki 0 156 Available C++ Libraries FAQ
URL: http://www.trumphurst.com/cpplibs/
This is a searchable list of libraries and utilities (both free
and commerc...
Inherited destructor behavior clarificationKevin 6 167
Hi,
I would like to ask whether that I know is valid in this case.
Assume:
template
class base {
protected:
~base() { }
public:
void ...