Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 12, 2025

Summary

This PR implements the C++ CRUD example for the Doublets library as requested in issue #34:

  • ✅ Created cpp/ folder with complete C++ CRUD example implementation
  • ✅ Added main.cpp demonstrating Create, Read, Update, Delete operations
  • ✅ Added CMakeLists.txt and conanfile.txt for build configuration
  • ✅ Added comprehensive README.md with build instructions and documentation
  • ✅ Added GitHub Actions workflow for C++ builds with GCC and Clang

Implementation Details

The C++ example follows the same pattern as the C# and Rust versions:

  1. Creates a doublet link using UnitedMemoryLinks
  2. Updates the link to reference itself (creates a point: 1→1)
  3. Reads and displays all links in the store
  4. Cleans up by resetting and deleting the link

Test Plan

  • Code compiles with C++20
  • CMakeLists.txt properly configured with Platform.Data.Doublets dependencies
  • README.md matches the style and structure of other language examples
  • GitHub Actions workflow added for automated building

🤖 Generated with Claude Code


Resolves #34

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #34
@konard konard self-assigned this Sep 12, 2025
- Add cpp folder with main.cpp containing CRUD example
- Add CMakeLists.txt and conanfile.txt for build configuration
- Add README.md with instructions and code documentation
- Add GitHub Actions workflow for C++ builds

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@konard konard changed the title [WIP] Make CRUD example for C++ in # 0 "<stdin>" # 0 "<built-in>" # 0 "<command-line>" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "<command-line>" 2 # 1 "<stdin>" folder Make CRUD example for C++ in cpp folder Sep 12, 2025
@konard konard marked this pull request as ready for review September 12, 2025 20:53
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.

Make CRUD example for C++ in cpp folder

2 participants