Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. std_lib_facilities.h:107:8: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
  2. if (i<0||size()<=i) throw Range_error(i);
  3. ~^~
  4. std_lib_facilities.h:113:8: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
  5. if (i<0||size()<=i) throw Range_error(i);
  6. ~^~
  7.  
  8. // trivially range-checked string (no iterator checking):
  9. struct String : std::string {
  10. using size_type = std::string::size_type;
  11. // using string::string;
  12.  
  13. char& operator[](unsigned int i) // rather than return at(i);
  14. {
  15. if (i<0||size()<=i) throw Range_error(i);
  16. return std::string::operator[](i);
  17. }
  18.  
  19. const char& operator[](unsigned int i) const
  20. {
  21. if (i<0||size()<=i) throw Range_error(i);
  22. return std::string::operator[](i);
  23. }
  24. };
  25.  
  26. {
  27. "cmd": ["g++", "-Wall", "-Wextra", "-pedantic", "-std=c++11", "${file}", "-o", "${file_path}/${file_base_name}"],
  28. "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  29. "working_dir": "${file_path}",
  30. "selector": "source.c, source.c++",
  31.  
  32. "variants":
  33. [
  34. {
  35. "name": "Run",
  36. "cmd": ["bash", "-c", "g++ -Wall -Wextra -pedantic -std=c++11 '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"]
  37. }
  38. ]
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement