VLA question #2163 (6/14/2013 5:49:37 AM) comp.lang.c
The following declaration of v is a variable length array and is thus a
constraint violation in compilers for C prior to C99 and in
implementations for C11 that define __STDC_NO_VLA__.
void f()
{
... prl1(105)
lambda this by reference31 (6/17/2013 7:53:51 PM) comp.lang.c++ Hi,
I such example, is 'this' caught by a reference?
struct S{
void f(){
[&](){ this->i =3D 0;}();
}
=20
int i;
};
I believe it is not, I think it is still caught by a valu... wo3kie(7)
What is better and why?312 (6/9/2013 8:57:10 PM) comp.lang.c 1st:
struct person {
char *name;
char *surname;
};
2nd:
typedef struct {
char *name;
char *surnname;
} person;
3th:
typedef struct person {
char *name;
char *s... 2970invalid(65)
"friend Foo" instead of "friend class Foo"?23 (6/6/2013 5:14:04 PM) comp.lang.c++ Hi.
I remember a code snippet from "Thinking in C++" where "class" and
"struct" keywords were missing from a friend declaration. The example
was more or less like this (it came from a chapter about nested
... pilarp(11)
Scoped enum question213 (6/10/2013 3:24:37 AM) comp.lang.c++
I'm trying to do a bitwise and of a uint8_t and a member
of a scoped enum.
Here's the type with the uint8_t:
struct cmw_user_input
{
uint8_t marshalling_bits;
::std::deque headers;
::cmw::Fil... woodbrian77(256)
SemaCondvar module version 1.0 is here...42 (6/13/2013 12:55:33 PM) comp.lang.c
Hello,
SemaCondvar module version 1.0 is here...
SemaCondvar and SemaMonitor are new and portable synchronization objects...
Author: Amine Moulay Ramdane.
Description: SemaCondvar and SemaCond... aminer1(5)
Can a template method be pure virtual?82 (6/13/2013 10:59:49 PM) comp.lang.c++ I want to require that every subclass override the method.
template
virtual Exception & operator << (const T & value) = 0;
such that the subclass type is guarentee to be returned when the method
is cal... someone3(1550)