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)<