|
by: Dario |
last post by:
Trying to compile the following code-fragment with g++ 2.96:
class Entity {
private:
void * data;
public:
explicit Entity(int);
explicit Entity(Entity &);
virtual ~Entity();
void...
|
by: Stub |
last post by:
Docs says that "The compiler does not use an explicit constructor to
implement an implied conversion of types. It's purpose is reserved
explicitly for construction."
I put up code of three cases...
|
by: Christoph Bartoschek |
last post by:
Hi,
gcc 3.4 rejects the following program:
class T {
public:
T() : a(3) {}
explicit T(T const & other) : a(other.a) {}
private:
int a;
|
by: Marcelo Pinto |
last post by:
Hi all,
In practice, what is the diference between a default constructor and
an explicit default constructor?
class Ai
{
public:
Ai() {}
};
|
by: Tanmoy Bhattacharya |
last post by:
Hi,
This is a question about whether I am right that a particular syntactic
sugar is missing in C++.
Let me explain with an example. Let us say I have a class for complex
numbers, and I want...
|
|
by: D.J. Stachniak |
last post by:
Hi,
I have a question about explicit constructors and the C++ standard.
Forgive me for my laziness in not pouring over the spec myself, but I
thought I'd ask first and read later. I have a...
|
by: Fred Zwarts |
last post by:
Consider the following code:
// Start of code
class MyException_t {
public:
// Default constructor.
|
by: Ole Nielsby |
last post by:
Why is this?
I've stumbled on this restriction more than once, and I'd
like to know the philosophy behind it if there is one. I figure
I'd be less prone to make this error if I knew the reason....
|
by: denis |
last post by:
Hello,
I noticed the following in the "C++ Coding Standards" book. Why should
the code
on line 30 be in error?
Transmogrify accepts a (B obj), and we are passing it a B obj. I
understand why...
|
by: Rahul |
last post by:
Hi Everyone,
I have the following code and i'm able to invoke the destructor
explicitly but not the constructor. and i get a compile time error
when i invoke the constructor, why is this so?
...
|
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: 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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
|