|
by: Rahul Joshi |
last post by:
Hi,
Is it possible to define static member functions that are 'const',
i.e. they just read but do not modify the static data members of
a class? Declaring functions like:
class SomeClass {...
|
by: Seb |
last post by:
I am trying to initialize a const static object data member in a header
file? The following code errs.
class Object
{
public:
virtual const char* ToString() { return "Object"; }
virtual...
|
by: Dave |
last post by:
const static int ARRAY_SIZE = 4;
Comeau online gives this warning:
"ComeauTest.c", line 10: warning: storage class is not first const static
int ARRAY_SIZE = 4;
Why is static const...
|
by: Susan Baker |
last post by:
Hi,
I got this error msg whilst building some classes. It is realatively asy
to fix. But I just wondered, does anyone know the technical reason why
one can't initialiaze a const static...
|
by: nilavya |
last post by:
Hi Gurus,
Since I learned C++, way back in 2002, I always had a doubt about the
different types of storage in C++. We have "const", "static" ,
"#define" for one or other purpose. Now I have a...
|
|
by: Russell Mangel |
last post by:
Hi,
I would like to encapsulate the following CRC32 routine inside a C++
un-mananged class.
I am having difficulty initializing the "const static unsigned int table"
inside an un-managed C++...
|
by: psujkov |
last post by:
Hi everybody,
let us have some class A with const static int variable var with
compile-time well-known value. let us have some function f(), which
has return type of A. and let us have some...
|
by: t |
last post by:
Lippman's C++ Primer says that if you initialize a const static data
member in a class, you still need to define the member outside the
class but without an initializer.
I tried it using Visual...
|
by: akomiakov |
last post by:
Is there a technical reason why one can't initialize a cost static non-
integral data member in a class?
|
by: Bob Doe |
last post by:
I have a const static object. What is the right syntax to get a
reference to the std::vector within the std::map variable?:
class MyObj
{
public:
...
std::map<std::string,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|