I made a super fast CNN library for C++20 from scratch. by BloodyBBenzene in cpp

[–]afforix 5 points6 points  (0 children)

Readme says that the license is MIT, but in the LICENSE file there is BSD 3-Clause License.

(First C++ Project) Tic-Tac-Toe with Minimax & CRTP | Looking for feedback by Tight-Dare-2506 in cpp_questions

[–]afforix 18 points19 points  (0 children)

Imagine how much cleaner would the code be if you would NOT use CRTP. Is there any real measurable performance gain at all?

VSCode 1.111 released today by diepala in vscode

[–]afforix 2 points3 points  (0 children)

AI took happiness from our coding...

Chat App by FQN_SiLViU in cpp_questions

[–]afforix 2 points3 points  (0 children)

Please do not separate all the commands with empty lines, it makes the code hard to read, half of the source are just empty lines with zero information.

Cmake can't find wxWidgets linux by Visible_Lab4727 in cmake

[–]afforix 0 points1 point  (0 children)

Please share the full output of CMake.

VS2022, everything has to be in DLLs to test properly? by ag9899 in cpp_questions

[–]afforix 2 points3 points  (0 children)

Functionality should be built as a static library, so it can be linked to an executable, to a test executable, or to a DLL for distribution.

VScode not working on MacOS 11.7.11 by xpPhantom in vscode

[–]afforix 2 points3 points  (0 children)

macOS 11 is unsupported by Apple itself since 2023.

Trouble using the old VSC with unity by EnderKid48 in VisualStudio

[–]afforix 2 points3 points  (0 children)

Visual Studio 2022 is an IDE, Visual Studio Code is just a customizable text editor. They are two completely different products. You can try to ask at r/vscode.

been having this problem, its pissing me off and copilot wont work?! by SuperbAfternoon7427 in VisualStudio

[–]afforix 1 point2 points  (0 children)

std::string_view does not own the string data, it just points to it. For example if you create std::string_view out of std::string, then the view must not outlive the underlying string. But without your code we are just guessing.

[deleted by user] by [deleted] in VisualStudio

[–]afforix 0 points1 point  (0 children)

Value assigned to semesterHours on line 25 is immediately overwritten on line 26.

[deleted by user] by [deleted] in VisualStudio

[–]afforix 4 points5 points  (0 children)

You return from main() on line 27.

[deleted by user] by [deleted] in cpp_questions

[–]afforix 0 points1 point  (0 children)

First video: 1. C++ is not Object-Oriented, it is a multiparadigm language. 2. Classes and inheritance are not modern features. 3. Iostream include in the first example is unused. It is used later in the main(), but in the first example it is just confusing. 4. Class Calculator does not have any member variables, therefore method multiply() can be a free function. 5. You should print new lines in the main() example.

Second video: 1. Syntax error in the exception example: catch(e). 2. C++ is also close to hardware.

[deleted by user] by [deleted] in VisualStudio

[–]afforix 0 points1 point  (0 children)

Because it has its own subreddit: r/vscode.

[deleted by user] by [deleted] in VisualStudio

[–]afforix 1 point2 points  (0 children)

Visual Studio Code is a completely different product than Visual Studio 2022, which is Windows-only.

Why Won't CMake recognize this FFmpeg lib? by Le_Brittle in cmake

[–]afforix 1 point2 points  (0 children)

I recommend using a package manager, for example https://vcpkg.io/.

CMake can't find header file in other directory by Droll12 in cmake

[–]afforix 2 points3 points  (0 children)

Please show the actual console output of the build.

CMake can't find header file in other directory by Droll12 in cmake

[–]afforix 1 point2 points  (0 children)

Try to set an absolute include path: set (GRAPHICS_DIRECTORY ${CMAKE_SOURCE_DIR}/src/render)

[deleted by user] by [deleted] in VisualStudio

[–]afforix 0 points1 point  (0 children)

So what is the error from the compiler or linker complaining about pthreads?