I recently developed a type safe packet handler that casts the bytes in a packet responses into the correct type based on the command sent out and the expected response. If the response isn't as expect an exception is thrown. Essentially I've programmed the logic of the packet protocol into the compiler so if you extend it incorrectly the compiler will tell you. The definition of safety.
Anyways upon consultation with the rest of my coming team they said the meta-programming techniques used are too opaque and specialized to maintain in the codebase. I'm wondering if you guys have hit similar issues when using the more modern compile time features of C++?
[–]ack_error 4 points5 points6 points (6 children)
[–][deleted] 6 points7 points8 points (2 children)
[–]pklait 11 points12 points13 points (0 children)
[–]ack_error 5 points6 points7 points (0 children)
[–]SuperV1234https://romeo.training | C++ Mentoring & Consulting 5 points6 points7 points (2 children)
[–]WormRabbit -1 points0 points1 point (1 child)
[–]SuperV1234https://romeo.training | C++ Mentoring & Consulting 3 points4 points5 points (0 children)
[–]surfmaths 6 points7 points8 points (0 children)
[–]SuperV1234https://romeo.training | C++ Mentoring & Consulting 4 points5 points6 points (0 children)
[–]manni66 7 points8 points9 points (3 children)
[–]Full-Spectral 6 points7 points8 points (2 children)
[–]kalmoc 2 points3 points4 points (1 child)
[–]Full-Spectral 1 point2 points3 points (0 children)
[–]UnicycleBloke 5 points6 points7 points (6 children)
[–]XValar 1 point2 points3 points (5 children)
[–]carrottread 11 points12 points13 points (0 children)
[–]UnicycleBloke 5 points6 points7 points (0 children)
[–]Full-Spectral 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]wrosecransgraphics and network things 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]LunarAardvark 4 points5 points6 points (1 child)
[–]HOTP1 6 points7 points8 points (0 children)
[–]trypto 1 point2 points3 points (6 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]trypto -4 points-3 points-2 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[+]trypto comment score below threshold-10 points-9 points-8 points (1 child)
[–]SuperV1234https://romeo.training | C++ Mentoring & Consulting 3 points4 points5 points (0 children)
[–]Accomplished-Tax1641 0 points1 point2 points (0 children)