LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 4 of 4
Search took 0.01 seconds.
Search: Posts Made By: dugan
Forum: Programming 02-01-2024, 08:43 AM
Replies: 13
Views: 310
Posted By dugan
If you want to save two bytes, you can use .C...

If you want to save two bytes, you can use .C (big C)
Forum: Programming 01-31-2024, 07:47 PM
Replies: 13
Views: 310
Posted By dugan
And he should be building with g++, not gcc.

And he should be building with g++, not gcc.
Forum: Programming 01-31-2024, 06:15 PM
Replies: 13
Views: 310
Posted By dugan
This compiles fine for me: ❯ cat auto.cpp ...

This compiles fine for me:

❯ cat auto.cpp
auto main() -> int
{
return 0;
}

❯ g++ --std=c++23 auto.cpp
Forum: Programming 01-31-2024, 03:57 PM
Replies: 13
Views: 310
Posted By dugan
No difference. The trailing return type...

No difference.

The trailing return type style is actually needed for:

A) lambdas

B) template functions where the return type depends on the types of the arguments
Showing results 1 to 4 of 4

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration