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

Using std::string::string #475

Closed
wants to merge 1 commit into from

Conversation

georgthegreat
Copy link
Contributor

The following code utilizes class ctor, not operator= and was broken by sdbus-cpp 2.0.0:

const sdbus::ObjectPath SIGNALQ_DBUS_NOTIFY_MGR_OBJ_PATH = "/signalq/notify_mgr";

This fixes the behavior.

The following code utilizes class ctor, not `operator=` and was broken by sdbus-cpp 2.0.0:

```
const sdbus::ObjectPath SIGNALQ_DBUS_NOTIFY_MGR_OBJ_PATH = "/signalq/notify_mgr";
```

This fixes the behavior.
@georgthegreat georgthegreat deleted the patch-2 branch January 7, 2025 10:00
@sangelovic
Copy link
Collaborator

This was intentional breaking change. ObjectPath is a strong type and can only be explicitly constructed from a std::string or C string, e.g. like this: const sdbus::ObjectPath SIGNALQ_DBUS_NOTIFY_MGR_OBJ_PATH{"/signalq/notify_mgr"};.

I guess you realized that yourself after opening the MR and closed the MR subsequently :-)

@georgthegreat
Copy link
Contributor Author

I realized that this PR breaked the build though I did not find the way to fix it.

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