Anonymous
Who wants to create a plugins for Unreal with me for fun/market
Anonymous
C++
klimi
.
Has anyone worked with coroutines?
.
I wonder how to make it so that "co_await" wait for the arrival of data without parallelism and at the same time perform the main task
Anonymous
Jii
MᏫᎻᎯᎷᎷᎬᎠ
Siddhanth
Siddhanth
Im not sure if coroutines are there
Siddhanth
In heap
Anonymous
I don't think so
The information needed to resume a coroutine is indeed stored in the heap (or free store). All the existing coroutine implementations (gcc, Clang, MS C++ ) in C++ are stackless. You have external libraries like CO2 which support stackful coroutines.
Siddhanth
Siddhanth
I'll go check it out now
...
How do I access classes with C++ GetProcAddress?
When I try to reach it, it returns a NULL value, the code I used to reach GetProcAddress(dllModule,"classname::Function")
\Device\NUL
MᏫᎻᎯᎷᎷᎬᎠ
The standardisation process is slow, there is a talk in cpp podcast about whether the language is Dying or not
MᏫᎻᎯᎷᎷᎬᎠ
Bryce complained about that and mentioned that the some committee members should give up their power in order to make the standardisation process much faster thus improving the language
Anonymous
MᏫᎻᎯᎷᎷᎬᎠ
I wonder if its maturity measured, what will we give it out of 10
MᏫᎻᎯᎷᎷᎬᎠ
I like its macro system
Sometimes I feel that trait bounding is too much restrictive
MᏫᎻᎯᎷᎷᎬᎠ
A trade off for good error message
Anonymous
MᏫᎻᎯᎷᎷᎬᎠ
You are right
I forgot myself
MᏫᎻᎯᎷᎷᎬᎠ
Anyway
I feel this code should compile, but seems this feature is likely will be added later in the standard:
consteval int foo(std::size_t size){
std::array<int, size> ar;
return 0;
}
MᏫᎻᎯᎷᎷᎬᎠ
Compile time function doesn't exist in anyway, they are just resulted compile time computed values
Anonymous
Compile time function doesn't exist in anyway, they are just resulted compile time computed values
I know what consteval is
consteval int func(int& x){return -1;}
int x{};
static_assert(func(x)==-1);
Arguments to consteval functions need not be constant expression.
Read this link to understand the arguments against consteval functions being used as template parameter arguments - https://stackoverflow.com/questions/56130792/will-consteval-functions-allow-template-parameters-dependent-on-function-argumen
Read all the answers in that link
Also think of a case like this which is not currently supported
consteval auto func(int n){
if constexpr(n==0)
return 1;
else {
using T = decltype(fn(n-1))*;
return T{};
}
}
This doesn't work because consteval functions don't support instantiations at compile time which was always the idea behind them. They were meant to be evaluated at compile time rather than supporting instantiations of the sort you see with template functions. Supporting instantiations in consteval functions would defeat the type system
consteval functions by their definition in the standard are parsed once and evaluated each time at the call site during compile time. This is very different from how template instantiations work. So like I said there is a difference between compile time evaluation and compile time instantiation (TMP included).
Anonymous
If you have further questions just ask away. I am winding up now but will reply when I get the time
...
Did you know that network has been added to C++?
...
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2171r1.pdf
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
I guess it will be asio
...
.
Sky's
Hi is there someone who's willing to help me in creating a code for my sumobot?
me_
What is the best?
Bring data from Data base to list and then deal with it
Or it is better to deal with the data and it is surrounded there, but we call it at the time of the need
王
😂
klimi
Simple Sorcerer
Rose
User Akash has 1/2 warnings; be careful!
Reason:
PMing
...
When I use the glm::toMat4(glm::quat(vec)) code in C++ OpenGL, the angle turns out to be incorrect, when I do 4.0 degrees, it becomes 45.0 degrees, what is the reason for this?
klimi
...
Rose
User Mitesh has 1/2 warnings; be careful!
Reason:
ask admins before self promoting like a shameless click slut
Brokssy
Hey
Brokssy
How can i install lib graphics.h on visual studio on c++ ?
莉莉亚娜🇨🇳
Hello, someone have a simple github repo for a methods post and get in C?
Rose
Reported to admins.
莉莉亚娜🇨🇳
Without curl or soup
Danya🔥
Manav
Manav
It's nearly 2024 and we still have people trying to use turboc++ 🫠
imminent
Indians seem to learn C++ that way for some reason lol
imminent
My guess it's that schools there just still follow the old materials and such
Manav
They're taught python instead in schools. Can't say for old teachers/profs that still insisting on that shit
Otoniel
Without curl or soup
You mean sending requests with pure c code, no lib!? It'll be specially hard. Any here's a helpful resource: https://beej.us/guide/bgnet/html/index-wide.html
...
learnopengl.com you can learn from this source
Adeyemo
Hello Everyone, I have a bug that have been disturbing for about two days now. I don't know to solve it. Please I need help.
Adeyemo
socketServer.c: In function ‘void receiveAndPrintIncomingDataOnSeparateThread(AcceptedSocket*)’:
socketServer.c:38:28: error: invalid conversion from ‘void (*)(int)’ to ‘void* (*)(void*)’ [-fpermissive]
38 | pthread_create(&id, NULL,receiveAndPrintIncomingRequest,clientSocket->acceptedSocketFD);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(int)
In file included from socketServer.c:3:
/usr/include/pthread.h:204:36: note: initializing argument 3 of ‘int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)’
204 | void *(*__start_routine) (void *),
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
socketServer.c:38:73: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
38 | eate(&id, NULL,receiveAndPrintIncomingRequest,clientSocket->acceptedSocketFD);
| ~~~~~~~~~~^~~~~~~~~~~~~~
| |
| int
Adeyemo
That's my error
Manav
socketServer.c: In function ‘void receiveAndPrintIncomingDataOnSeparateThread(AcceptedSocket*)’:
socketServer.c:38:28: error: invalid conversion from ‘void (*)(int)’ to ‘void* (*)(void*)’ [-fpermissive]
38 | pthread_create(&id, NULL,receiveAndPrintIncomingRequest,clientSocket->acceptedSocketFD);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(int)
In file included from socketServer.c:3:
/usr/include/pthread.h:204:36: note: initializing argument 3 of ‘int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)’
204 | void *(*__start_routine) (void *),
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
socketServer.c:38:73: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
38 | eate(&id, NULL,receiveAndPrintIncomingRequest,clientSocket->acceptedSocketFD);
| ~~~~~~~~~~^~~~~~~~~~~~~~
| |
| int
Use a pastebin. The error is unreadable
Adeyemo
What is pastebin?