Skip to content

Commit

Permalink
C++: Add generated Set snippet to the supported types table (#3070)
Browse files Browse the repository at this point in the history
## Pull Request Info

Noticed this quick fix while I was putting together release notes.

### Staged Changes

- [Supported
Types](https://preview-mongodbdacharyc.gatsbyjs.io/realm/fix-missed-set-code-snippet/sdk/cpp/model-data/supported-types/)

### Reminder Checklist

If your PR modifies the docs, you might need to also update some
corresponding
pages. Check if completed or N/A.

- [x] Create Jira ticket for corresponding docs-app-services update(s),
if any
- [x] Checked/updated Admin API
- [x] Checked/updated CLI reference

### Review Guidelines


[REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md)
  • Loading branch information
dacharyc authored Nov 3, 2023
1 parent fd8171f commit 9a209c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/cpp/beta/local/supported-types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct Beta_AllTypesObject {
std::vector<SomeType> listTypeName;
// :snippet-end:
// :snippet-start: beta-required-set
std::set<std::string> setTypeName;
std::set<SomeType> setTypeName;
// :snippet-end:
};
REALM_SCHEMA(Beta_AllTypesObject, boolName, optBoolName, intName, optIntName,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
std::set<std::string> setTypeName;
std::set<SomeType> setTypeName;
5 changes: 5 additions & 0 deletions source/sdk/cpp/model-data/supported-types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ properties.
:language: cpp
:copyable: false
- N/A
* - Set
- .. literalinclude:: /examples/generated/cpp/supported-types.snippet.beta-required-set.cpp
:language: cpp
:copyable: false
- N/A
* - User-defined Object
- N/A
- .. code-block:: cpp
Expand Down

0 comments on commit 9a209c2

Please sign in to comment.