error conversion from double to non-scalar type std string requested

error: conversion from ‘double’ to non-scalar type ‘std::string’ requested

源代码:

string t_strScore = m_MTaskRedis->MRedisZScore(SendSEQ, t_strAddr + ":" + t_strSEQ);

修改后:

string t_strScore;
t_strScore = m_MTaskRedis->MRedisZScore(SendSEQ, t_strAddr + ":" + t_strSEQ);

BUG神奇的消失了,我并没有看懂报的什么错误。哪位大佬知道告诉我哈。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章