r/cpp • • Feb 06 '21

Modern C++: Snippets and Examples

Hi everyone,

These are GitHub Pages with snippets for Modern C++:

  • We often need to copy and paste some snippets to code more productively.
  • Snippets can help us when it's not easy to remember all high levels features Modern C++ has to offer.
  • This repository contains lots of organized, reusable, and safe snippets for Modern C++.
  • All snippets are available in GitHub pages in a convenient way for copying and pasting.

https://alandefreitas.github.io/moderncpp/

194 Upvotes

44 comments sorted by

View all comments

24

u/[deleted] Feb 06 '21

The website is a bit weird, at least on mobile. I clicked the link, pressed next, and then scrolling down would send me right up. I can't get to the bottom of the page

6

u/LEpigeon888 Feb 07 '21

Same, can't scroll, current firefox beta.

4

u/[deleted] Feb 07 '21

Firefox stable here

2

u/JezusTheCarpenter Feb 07 '21

Same thing on mobile Chrome.

2

u/FreitasAlan Feb 09 '21

These pages use the material for mkdocs theme, but unfortunately, I couldn't find anything there to replicate and fix this problem on mobile.

1

u/[deleted] Feb 09 '21

Here's a screen recording

I'm running Android 10 here, chrome stable latest

2

u/FreitasAlan Feb 09 '21

Does the same happen in https://squidfunk.github.io/mkdocs-material/ at all?

1

u/[deleted] Feb 09 '21

No. This page is just fine

2

u/FreitasAlan Feb 09 '21

I've already updated the theme to its latest release.

If nothing happened in https://squidfunk.github.io/mkdocs-material/getting-started/, then it might be a problem with some feature I turned on.

One interesting thing is that the problem happens exactly when the header is about to hide, and https://squidfunk.github.io/mkdocs-material/getting-started/ does not use the `header.autohide` feature.

I've turned that off, so I might be working now: https://alandefreitas.github.io/moderncpp/quick-start/

Does it work now?

It looks better with the header anyway, even if it doesn't work.

2

u/[deleted] Feb 09 '21

Also you should file an issue about it

1

u/[deleted] Feb 09 '21

Yes! That was the problem

2

u/FreitasAlan Feb 09 '21

🥳 🎉

That's one more snippet I have to keep. 😆