video(cpp11/00): manim animation for auto/decltype#53
Open
Sunrisepeak wants to merge 1 commit into
Open
Conversation
Manim Community v0.18.1 scene mirroring the existing videos/cpp11/* framework (MovingCameraScene + d2x mcpp_video_start/end, DHighlight, create_code_helper). Six scenes following the chapter: declaration, expression deduction, complex types (iterator), trailing-return + decltype, const/reference stripping, and the decltype parentheses pitfall. Run: uv run --with "manim==0.18.1" manim -pql videos/cpp11/00-auto-and-decltype.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Adds the Manim animation for chapter 00 (
book/src/cpp11/00-auto-and-decltype.md), following the existingvideos/cpp11/*framework.Implementation
MovingCameraScene+ the sharedvideos/d2xframework (mcpp_video_start/end,DHighlight,create_code_helper) — same conventions as09/10/11.autotames the verbose iterator type (STL real-world angle)auto … -> decltype(a + b)autostrips top-level const/ref;const auto&/decltypepreservedecltype(a)vsdecltype((a))Run (uv)
uv run --with "manim==0.18.1" manim -pql videos/cpp11/00-auto-and-decltype.pyNotes
cairo(1.18) is built with XCB support, sopycairomust compile its XCB binding, but the fulllibxcb*-devheaders (xcb/render.h,xcb/shm.h) aren't present andsudo aptisn't available. On a normal dev box with manim installed this renders like the other chapters.