C++CodeRAD Studio

Discover How To Use C++ Explicit Conversion Operators For Efficient Windows Development

BCC32 includes support for explicit conversion operators, one of the features in the C++11 standard. The explicit constructors and conversion operators are used to avoid implicit conversions to and from a type. You can now apply the function specifier explicit in the definition of a user-defined conversion operator. Previously, explicit constructors (including copy constructors) were added to…
Read more
C++CodeRAD Studio

Learn How To Use The C++ New Character Types For Easy Windows Development With C++ Builder

BCC32 implements new character types and character literals for Unicode. These types are among the C++11 features added to BCC32. Character Types char16_t and char32_t Two new types represent Unicode characters: char16_t is a 16-bit character type. char16_t is a C++ keyword. This type can be used for UTF-16 characters. char32_t is a 32-bit character type. char32_t is a C++ keyword. This…
Read more
C++CodeRAD Studio

Learn How to Use C++ Forward Declarations For Enums In Windows Development With C++Builder

Forward declarations for enums is a feature supported by both BCC32 and the Clang-enhanced C++ compilers. Forward-declaring plain old enums is not possible. However we can provide forward declarations for scoped enums. We also can forward declare enums with explicit underlying types. It is a C++11 feature. Examples enum OldEnum; //ERROR enum WithUnderlyingType : short…
Read more
C++CodeRAD Studio

Learn How To Use C++ Raw String Literals For Windows Apps In C++ Builder

There are escape characters in C++ like “n” or “t”. When we try to print the escape characters, it will not display on the output. To show the escape characters on the output screen we use a raw string literal by using R”(String with escape characters)”. After using R in the front of the string the escape character will be displayed on the output. From C++ 11, basically a raw string…
Read more