V
V
Vadim Ushakov2021-09-17 14:54:44
C++ / C#
Vadim Ushakov, 2021-09-17 14:54:44

Why does an inference error occur after type conversion?

Machinarium::DataStorages::SelfContainStorage::GetPathToRunningObject()
returns this type of path

const std::string s = Machinarium::DataStorages::SelfContainStorage::GetPathToRunningObject().string();

    std::cout << s.size() << ' ' << s.length() << std::endl;
    std::cout << s << std::endl;

    lua_pushlstring(L, s.c_str(), s.length() - 1);
    lua_setglobal(L, "ProgramRunningPath");


Conclusion.
$ 59 59
�|	��|	
                  ���m8}	ifm!��|	
                                          ���m�}	inlicen 
�|	��|	
                  ���m8}	ifm!��|	
                                          ���m�}	inlicen 
Running SelfRunningObjectStorageApi Payload.	Unix


instead of

/home/ubuntu/workspace/cpp.machinarium/bin/Release/licenses


What could be the problem, provided that the dimensions match?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question