BinaryByter
so you can't get the context of the class
BinaryByter
just remove the classname:: and it will be fine
BinaryByter
also, give "getConWords()" a return type
BinaryByter
I told you what to do
BinaryByter
now, tell me how that changed the compiler errors
Dima
probably an encoding issue?
BinaryByter
no
Dima
had something similar long time ago
BinaryByter
look at the constructor
BinaryByter
like. closely
BinaryByter
look at how you call the functions
klimi
Shouldn't it be ()?
BinaryByter
also, give your functions return types
BinaryByter
Shouldn't it be ()?
He shouldnt give a return type when calling a function and shouldnt call the function anonymously
klimi
Ok
BinaryByter
but he doesn't listen
klimi
My teacher told me that I can use my calculator to compute variations
klimi
It's awesome
BinaryByter
lol you can xD
Dima
misleading
BinaryByter
Sure
BinaryByter
BinaryByter
TRY THIS
BinaryByter
INSTEAD OF WHINING AROUND THAT NOBODY IS HELPING YOU
Dima
lol try RVO
BinaryByter
RVO?
Dima
if you are returning huge objects
BinaryByter
are you sure that that's not completely unrelated?
Dima
return value optimization
Dima
Dima
like std string
BinaryByter
it's a fucking compilation proiblem
Dima
I know but I am giving advices
Dima
BinaryByter
lol try RVO
and you don't "ACTIVELY" do rvo the compiler does it for you
BinaryByter
though move semantics are better
Dima
not always
olli
Dima
lol OLD SCHOOL
void getType(std::string& out)
klimi
BinaryByter
BinaryByter
xD
BinaryByter
But for std::vector, move shoudl be fine, right?
Dima
lol
olli
If would still prefer not to move. However the state inside std::vector is probably not as big so it might be better than moving a string
Anonymous
BinaryByter
olli
@QNeko why?
BinaryByter
should I rely on RVO or should I rather use move semantics when returning a vector?
BinaryByter
move semantics are better to get certainty
BinaryByter
we saw those three screenshots three times. Please don't post them again
BinaryByter
Well according to @QNeko i should prefer move over RVO, atleast in the case of ZENeural
BinaryByter
@QNeko why?
BinaryByter
should I rely on RVO or should I rather use move semantics when returning a vector?
BinaryByter
move semantics are better to get certainty
olli
- A function cannot return multiple things
- you are missing the return type of the last function
- call your functions with this-> or just the name instead of newClass::
Dima
I see Imperial sign
BinaryByter
Mat
#offtopic
Marie
https://t.me/joinchat/Ci0Cak-BPuxaHdcbjab4QQ
olli
BinaryByter
BinaryByter
I prefer it
No, it clutters the code making it unreadable, imbo
BinaryByter
@QNeko we already have certainty, so move semantics are kinda redundant, right?
Dima
BinaryByter
Named RVO is when I return an object of the same part?
BinaryByter
olli
BinaryByter
and then, let me implement type_traits
Dima
so I made my own Neko::Move
BinaryByter
olli
BinaryByter
Dima
sec
Dima
it probably works
template <class T>
typename RemoveReference<T>::Type&& Move(T&& __t)
{
typedef typename RemoveReference<T>::Type _Up;
return static_cast<_Up&&>(__t);
} ez