https://github.com/dmitrii-artuhov/cub-cpp-ta-assessment
Custom implementation of `std::any`. Test assessment for teaching assistant in C++ position at CUB 2024.
https://github.com/dmitrii-artuhov/cub-cpp-ta-assessment
Last synced: 7 months ago
JSON representation
Custom implementation of `std::any`. Test assessment for teaching assistant in C++ position at CUB 2024.
- Host: GitHub
- URL: https://github.com/dmitrii-artuhov/cub-cpp-ta-assessment
- Owner: dmitrii-artuhov
- Created: 2024-01-28T00:18:02.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-28T00:30:14.000Z (over 1 year ago)
- Last Synced: 2024-01-28T01:29:43.975Z (over 1 year ago)
- Language: C++
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Custom implementation of `std::any`
### Notes
- The implementation works with `-no-rtti` compilation flag (take a look in [CMakeLists.txt](./CMakeLists.txt) file). It relies mostly on how the actual `std::any` works.
- Some tests were added, see [src/test.cpp](./src/test.cpp).### Building
To build and run the tests do the following:- `git clone https://github.com/dmitrii-artuhov/cub-cpp-ta-assessment.git && cd cub-cpp-ta-assessment`
- `mkdir build && cd build`
- `cmake .. && make`There will be `tests` target generate in the created build folder, run it: `./tests`.