-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ice::Object cleanup #1954
Ice::Object cleanup #1954
Conversation
|
||
namespace Ice | ||
{ | ||
/** | ||
* A mapping from facet name to servant. | ||
*/ | ||
using FacetMap = ::std::map<::std::string, std::shared_ptr<Object>>; | ||
using FacetMap = std::map<std::string, ObjectPtr>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we use std::lesss<>
in case we want to lookup with a string_view?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we could, but I'd rather leave this for another PR. Same question for the more frequently used Context:
// generated code
/**
* A request context. <code>Context</code> is used to transmit metadata about a request from the server to the client,
* such as Quality-of-Service (QoS) parameters. Each operation on the client has a <code>Context</code> as its
* implicit final parameter.
*/
using Context = ::std::map<::std::string, ::std::string>;
This PR adds constructors and assignment operators to Ice::Object (see #1926), moves emptyCurrent to Current.h, improves the implementation of MarshaledResult, and replaces all std::sharedIce::Object (and similar) by Ice::ObjectPtr.