C++11 mapping for IDL primitive types

The proposal is to map the IDL primitive types directly to their C++11 representation. No special CORBA typedefs as currently, but just C++11 types which can be used directly in all application code.

IDL typeC++11 datatype
IDL primitive types
 char char
 wchar wchar_t
 octet uint8_t
 short int16_t
 unsigned short uint16_t
 long int32_t
 unsigned long uint32_t
 long long int64_t
 unsigned long long uint64_t
 float float
 double double
 long double long double
 boolean bool
 fixed ?
 string std::string
 wstring std::wstring

 

 

 

Your rating: None Average: 5 (1 vote)

Will anything change?

I haven't seen anything in the C++0x spec that changes anything about primitive types. If that's indeed the case, won't we still be faced with using to_char, from_boolean etc.?

Won't work for floating point

I do not think the requirements for the CORBA/IDL floating point types and those of the C++ types match, or do they?

For those types there the IDL specs match the C++ std specs exactly, this is certainly a good idea.