Confirming your subscription…

This can take a few moments while we confirm your payment with Revolut. Please don't close this page.

Conflict

Discard your changes?

Reloading will discard the content you have written here and load the latest version of this station. Copy anything you want to keep first.

Warning

SUPERSET
1
C++
1
Bug
POSTERIOR
NAMES
Implicit Conversion Problem
2
Explicit
2
THEORY TYPE
Technical
DESCRIPTIONS

C++ bug -- type not matched correctly. The wholeobject type is treated as integer if the single argument to object constructor is integer.

1

The bandage solution C++ standard comittee came up with is the explicit keyword.

1
Seeing explicit keyword is a good hint we are dealing with a constructor.
1
VERSION NO
1
CREATED AT
UPDATED AT
PRIOR
1
Signed Integer
2
Constructor
SUBSET
1
Implicit Conversion Problem Example
1
Implicit Conversion Problem Example
EXAMPLES