pivotal-jbarrett commented on a change in pull request #938: URL: https://github.com/apache/geode-native/pull/938#discussion_r818852254
########## File path: cppcache/src/TcrConnection.cpp ########## @@ -380,33 +386,33 @@ bool TcrConnection::initTcrConnection( } switch (acceptanceCode[0]) { - case REPLY_OK: - case SUCCESSFUL_SERVER_TO_CLIENT: + case static_cast<int>(acceptance_codes::REPLY_OK): Review comment: Usage of `enum class` should be preferred to scope the constants and avoid collision with others not to mention avoid the strangely behaving type decaying old school `enum` does. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org