Commit Graph
19 Commits
Author SHA1 Message Date
josh ddaae32525 Add casting move constructor 2026-02-24 16:00:14 -05:00
josh 7880adef89 Add static_assert to upcasting constructor; add rcp_dynamic_cast() 2026-02-24 15:48:41 -05:00
josh 62b729badd Add move constructor and move assignment operator 2026-02-24 15:18:41 -05:00
josh 2e30a9f407 Fix (and test) that copy constructor decrements previous object counter 2026-02-24 14:49:47 -05:00
josh 4a1a0c8855 Add operator==() and operator!=() 2026-02-24 14:44:38 -05:00
josh 47273edf6e Test construction from raw pointers 2026-02-23 23:01:56 -05:00
josh 21f2dd4cad Add rcp::create() 2026-02-23 22:52:07 -05:00
josh ffe8433d55 Add operator bool() and test boolean checks 2026-02-23 22:44:55 -05:00
josh be2da870bb Add and test dereference operators 2026-02-23 22:43:05 -05:00
josh 9dfb6e4740 Rename rcp_root() to rcp_managed_root() 2026-02-23 22:37:06 -05:00
josh 53b2247432 Avoid need for rcp_managed() call in rcp root class 2026-02-23 22:35:57 -05:00
josh 83ca3d8893 Add visibility attributes to rcp_managed() 2026-02-23 22:35:19 -05:00
josh eaad6ba6e0 Replace root class with rcp_root() macro 2026-02-23 22:33:09 -05:00
josh 3fdb7c9bc6 Test construct and destruct counters match expected 2026-02-23 21:58:53 -05:00
josh b45e664726 Fix initial implementation and add first test 2026-02-23 21:50:28 -05:00
josh 13c7832c4b Fix tests to use CXX compiler and fail if valgrind detects leak 2026-02-23 21:29:55 -05:00
josh fac82eaaad Replace managed class with rcp_managed macro 2026-02-23 20:19:37 -05:00
josh f5d52dfe98 Drop rcp_internal namespace for now to get working 2026-02-23 17:50:04 -05:00
josh 6fec208922 Start basic test infrastructure 2026-02-23 17:43:20 -05:00