Skip to content
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

Merged
merged 8 commits into from
Mar 16, 2024
Merged

Conversation

bernardnormier
Copy link
Member

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.

@bernardnormier bernardnormier requested a review from pepone March 16, 2024 14:04

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>;
Copy link
Member

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?

Copy link
Member Author

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>;

cpp/src/Ice/LoggerAdminI.cpp Outdated Show resolved Hide resolved
cpp/src/Ice/ServantManager.cpp Outdated Show resolved Hide resolved
cpp/src/Ice/ServantManager.cpp Outdated Show resolved Hide resolved
cpp/src/IceGrid/SessionServantManager.h Show resolved Hide resolved
@bernardnormier bernardnormier merged commit 7c6f754 into zeroc-ice:main Mar 16, 2024
24 checks passed
@bernardnormier bernardnormier deleted the object-slicing branch May 10, 2024 23:44
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this pull request Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants