From a24a3f7ad3a6d02d54867e1de6c6acbe51b8bfd1 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Fri, 14 Jan 2022 13:42:11 +0800 Subject: [PATCH] no message --- general/src/utils.cpp | 2 -- test/src/cpp11/template.cpp | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/general/src/utils.cpp b/general/src/utils.cpp index 8c4c87b..108e515 100644 --- a/general/src/utils.cpp +++ b/general/src/utils.cpp @@ -61,8 +61,6 @@ inline ENV_COMPILER CurrentEnvCompiler() return UNKNOWN; } - - // 限制float有效位 float LimitFloat(float in,int size) { uint64_t tmp = 1; diff --git a/test/src/cpp11/template.cpp b/test/src/cpp11/template.cpp index f72f447..57838db 100644 --- a/test/src/cpp11/template.cpp +++ b/test/src/cpp11/template.cpp @@ -9,8 +9,14 @@ #include "iostream" #include #include "pattern/ringbuffer.hpp" +#include + using namespace std; +std::tuple ReturnMoreData(){ + return std::tuple (1,"sss"); +} + void clearBuffer(int *dat,int len){ for(int i = 0;i < len;i++){ dat[i] = 0; @@ -94,6 +100,8 @@ void TestRingBuffer(){ } int main() { + auto x = ReturnMoreData(); + std::cout<<"x first is "<(x) << std::get<1>(x)<