[xsd-users] Feature request: Explicit constructors
Benjamin Schindler
bschindler at inf.ethz.ch
Thu Nov 18 08:35:46 EST 2010
Hi Boris
MyClass is not from a schema, but my own class (hence the name). Because
of the way the class works, having these two constructors makes a lot of
sense, but I'm unable to provide them due to the missing explicit
keyword in the constructor of FrameKind(const std::string& str)
Cheers
Benjamin
On 11/18/2010 02:36 PM, Boris Kolpackov wrote:
> Hi Benjamin,
>
> Benjamin Schindler <bschindler at inf.ethz.ch> writes:
>
>> I just stumbled across a problem with explicit conversions. I have a
>> class with 2 constructors:
>>
>> MyClass(FrameKind, double)
>> MyClass(const std::string&, double)
>
> Can you show the schema definition for MyClass?
>
> Boris
More information about the xsd-users
mailing list