Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheNicker
Copy link

No description provided.

@@ -16,8 +16,8 @@ namespace brynet { namespace base {
size_t element_size;

size_t element_num;
size_t front; /* ջ�� */
Copy link
Owner

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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

高版本的时候不需要判断pod 了么

Copy link
Author

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>
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants