Skip to content

Conversation

@bernardnormier
Copy link
Member

This demo updates the new demos (Greeter, Config) to use namespace Server for the server implementation.

It's consistent with the C# naming conventions and works fine with Ice since Ice doesn't define a Server class.

#include <sstream>

using namespace std;
using namespace ConfigServer;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also removed using namespace to make it clearer what comes from the Server namespace.

@@ -1,15 +1,13 @@
// Copyright (c) ZeroC, Inc.

using GreeterServer;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as in C++: it's clearer without this using.


/// A Chatbot is an Ice servant that implements Slice interface Greeter.
class ChatBot: Greeter {
class Chatbot: Greeter {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated fix.

@bernardnormier bernardnormier merged commit 4df0a6d into zeroc-ice:main Feb 11, 2025
7 checks passed
@bernardnormier bernardnormier deleted the namespace-fix branch June 18, 2025 22:09
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.

3 participants