Answered step by step
Verified Expert Solution
Question
1 Approved Answer
unsure how to fix this. referenced from the codes above In file included from main.cpp: 2 4 : mystring.h: 4 : warning: ignoring #pragma warning
unsure how to fix this. referenced from the codes above In file included from main.cpp::
mystring.h:: warning: ignoring #pragma warning Wunknownpragmas
#pragma warningdisable:
main.cpp: In function void RelationTest:
main.cpp::: error: no match for operatoroperand types are const char and csmystring::MyString
cout Is left right? boolStringv u endl;
~ ~
csmystring::MyString
const char
In file included from usrincludecbitsstlalgobase.h:
from usrincludecbitschartraits.h:
from usrincludecios:
from usrincludecostream:
from usrincludeciostream:
from mystring.h:
from main.cpp::
usrincludecbitsstlpair.h::: note: candidate: template constexpr bool std::operatorconst std::pairTT& const std::pairTT&
operatorconst pairTT& x const pairTT& y
~~~~~~~
usrincludecbitsstlpair.h::: note: template argument deductionsubstitution failed:
main.cpp::: note: mismatched types const std::pairTT and const char
cout Is left right? boolStringv u endl;
In file included from usrincludecbitsstlalgobase.h:
from usrincludecbitschartraits.h:
from usrincludecios:
from usrincludecostream:
from usrincludeciostream:
from mystring.h:
from main.cpp::
usrincludecbitsstliterator.h::: note: candidate: template bool std::operatorconst std::reverseiteratorIterator& const std::reverseiteratorIterator&
operatorconst reverseiteratorIterator& x
~~~~~~~
usrincludecbitsstliterator.h::: note: template argument deductionsubstitution failed:
main.cpp::: note: mismatched types const std::reverseiteratorIterator and const char
cout Is left right? boolStringv u endl;
In file included from usrincludecbitsstlalgobase.h:
from usrincludecbitschartraits.h:
from usrincludecios:
from usrincludecostream:
from usrincludeciostream:
from mystring.h:
from main.cpp::
usrincludecbitsstliterator.h::: note: candidate: template bool std::operatorconst std::reverseiteratorIterator& const std::reverseiteratorIteratorR&
operatorconst reverseiteratorIteratorL& x
~~~~~~~
usrincludecbitsstliterator.h::: note: template argument deductionsubstitution failed:
main.cpp::: note: mismatched types const std::reverseiteratorIterator and const char
cout Is left right? boolStringv u endl;
In file included from usrincludecbitsstlalgobase.h:
from usrincludecbitschartraits.h:
from usrincludecios:
from usrincludecostream:
from usrincludeciostream:
from mystring.h:
from main.cpp::
usrincludecbitsstliterator.h::: note: candidate: template bool std::operatorconst std::moveiteratorIteratorL& const std::moveiteratorIteratorR&
operatorconst moveiteratorIteratorL& x
~~~~~~~
usrincludecbitsstliterator.h::: note: template argument deductionsubstitution failed:
main.cpp::: note: mismatched types const std::moveiteratorIteratorL and const char
cout Is left right? boolStringv u endl;
In file included from usrincludecbitsstlalgobase.h:
from usrincludec
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started