longkai / lab

广西大学 - 雨无声实验室开放平台
4 stars 6 forks source link

PDE API Tools have not yet adopted the new language constructs #29

Open neemo14-15 opened 10 years ago

neemo14-15 commented 10 years ago

Summary: The C++ mapping does not permit extraction of a Fixed from an Any in a generic way -- I must always specify matching digits and scale in order to call Any::to_fixed(). This is inconvenient if an application wants to deal with Fixed values generically (because Fixed is a generic type in C++ anyway).

Proposal:

Add an overloaded >>= operator for extraction of Fixed from an Any. 
The operator sets the Fixed value to whatever scale and digits
are present in the type code.

                        Cheers,

                            Michi.