solidity-stringutils icon indicating copy to clipboard operation
solidity-stringutils copied to clipboard

Member "toSlice" not found or not visible after argument-dependent lookup

Open bortzmeyer opened this issue 8 years ago • 17 comments

I cannot use the library. Even with your own example:

    var len = "Unicode snowman ☃".toSlice().len();                                                                         

The compiler complains:

 % solc --abi registry.sol
registry.sol:26:15: Error: Member "toSlice" not found or not visible after argument-dependent lookup in literal_string "Unicode snowman ☃"
   uint len = "Unicode snowman ☃".toSlice().len(); 
              ^---------------------------^
% solc --v
solc, the solidity compiler commandline interface
Version: 0.3.2-0/Release-Linux/g++/Interpreter

bortzmeyer avatar May 23 '16 11:05 bortzmeyer