Skip to content

Unused serialization libraries still needed to build #64

@taion

Description

@taion

I'm trying to build a msgpack-only application, but I get build errors from not having RapidJson installed.

I believe it's from here: https://github.com/ecorm/cppwamp/blob/master/cppwamp/include/cppwamp/internal/client.hpp#L23-L24
because client codec is resolved as so:

switch (codecId)
{
case CodecId::json:
return Client<Json, Transport>::create(std::move(trn));
case CodecId::msgpack:
return Client<Msgpack, Transport>::create(std::move(trn));
default:
assert(false && "Unexpected CodecId");
}

I'd prefer not to depend on RapidJson when I'm not using JSON serialization.

ConnectorList destroys all static type information on the Connectors holding the CodecIds, so what do you think of making CodecId slightly fatter, perhaps with a virtual method for creating the correct client?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions