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神奇的消失了,我並沒有看懂報的什麼錯誤。哪位大佬知道告訴我哈。

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