-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed warnings and packet.hpp encoding #51
base: master
Are you sure you want to change the base?
Conversation
@@ -16,8 +16,8 @@ namespace brynet { namespace base { | |||
size_t element_size; | |||
|
|||
size_t element_num; | |||
size_t front; /* ջ�� */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请问为何注释去掉了呢。
@@ -359,9 +359,17 @@ namespace brynet { namespace base { | |||
void read(T& value) | |||
{ | |||
static_assert(std::is_same<T, typename std::remove_pointer<T>::type>::value, | |||
"T must a nomal type"); | |||
"T must be a nomal type"); | |||
#ifdef BRYNET_HAVE_LANG_CXX17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
高版本的时候不需要判断pod 了么
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not removed, it has been fixed.
The word 'be' has been added for a proper grammer
@@ -1,6 +1,6 @@ | |||
#pragma once | |||
|
|||
#include <cstdbool> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请问是为了什么警告呢? 我看 https://en.cppreference.com/w/cpp/header/cstdbool, 反而C++17时,不需要cstdbool
No description provided.