Skip to content

fixed warnings and packet.hpp encoding#51

Open
TheNicker wants to merge 1 commit intoIronsDu:masterfrom
TheNicker:master
Open

fixed warnings and packet.hpp encoding#51
TheNicker wants to merge 1 commit intoIronsDu:masterfrom
TheNicker:master

Conversation

@TheNicker
Copy link
Copy Markdown

No description provided.

Comment thread include/brynet/base/Stack.hpp Outdated
size_t element_size;

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

Choose a reason for hiding this comment

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

请问为何注释去掉了呢。

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

Choose a reason for hiding this comment

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

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

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

Comment thread include/brynet/base/Buffer.hpp Outdated
@@ -1,6 +1,6 @@
#pragma once

#include <cstdbool>
Copy link
Copy Markdown
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