Categories > Coding > C++ >
I don't understand C++
Replied
@63568
think about it again ;)
JustMarie#0709
Â
Replied
You can achieve a somewhat "any type" standard without templates, even in C.
Anything can be represented as a number, that's why C people be using void* for everything, I didn't mean it in a literal sense, I meant it in the explanation of typed syntax. Even in that sense you still have to declare the type being used for the template if it's used in a class or struct. I meant more so in a lua-like scenario. You can't have a value set to a number then set it to a string later, unless you "go around" it.
Cancel
Post
Replied
cornhub.com
Cancel
Post
hi123
Replied
@59853sorry
Cancel
Post
hi123
Replied
Yeah you can use void* it's just we're dealing with modern C++ here and I found it appropriate to mention templates, it's a must know in modern C++, but then again we have things like this in modern C++
class the_best_class_in_the_whole_universe
<%
_declspec(noinline) virtual const unsigned long unsigned long unsigned __fastcall __declspec_noinline_virtual_const_unsigned_long_unsigned_long_unsigned_fastcall() const <% return static_cast<const unsigned long unsigned long>(static_cast<bool>(static_cast<bool>(0.0f) + static_cast<bool>(0.0f) + static_cast<bool>(false + true) + static_cast<bool>(true - true) - true));%>;
%>the_best_class_in_the_whole_universe,*pthe_best_class_in_the_whole_universe;
Cancel
Post
You are a feedback loop.
no
Error: The signature must be between 3-200 characters
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post