ecorm / cppwamp

C++ client library for the WAMP protocol.
Boost Software License 1.0
35 stars 9 forks source link

Convertible types need public default contructor #98

Closed ecorm closed 8 years ago

ecorm commented 8 years ago

Variant::to<CustomType>(CustomType& dest) current requires that CustomType be default-constructible. Try to make it so CustomType does not require a default constructor, or, at least, the public contructor can be private and access be granted via wamp::ConversionAccess.

For Variant::to<CustomType>(), make it so the public constructor can be private and access be granted via wamp::ConversionAccess.