Namespaces
Variants
Actions

Talk:cpp/language/static cast

From cppreference.com

Hello!

How to trigger the machine translation of this page to other languages (for the pages that has already been translated by Google Translator)? I've slightly updated a source code of the example.

We don't actually have any automation that triggers the automatic translation. We've just been manually updating the translated pages, which is unfortunately not the best process. --Nate (talk) 21:30, 20 September 2015 (PDT)

Downcast of nullptr is not mentioned (so that ctatic_cast<base1*>(pMultipleInherited) is nullptr when pMultipleInherited is nullptr). --mikekaganski

[edit] Wiki templates not working when not logged in

This probably has something to do with the sitewide Rust vandalism of three days ago. On this page (i.e. "static_cast") and this page only, templates aren't being handled properly when I'm not logged in (both in private and normal browser sessions).

The templates are displayed as links to the corresponding template pages instead of as templates, as if their curly braces were square brackets or as if they've been wrapped in {{tln}} (which is a Wikipedia template you can find here).

So, for example, the content of the "Notes" section displays as follows: Template:c/core may also be used to disambiguate function overloads by performing a function-to-pointer conversion to specific type, as in Template:source

This isn't just something on my end either, because this page shows up as a search result for "Template:spar" or "Template:anchor" when using the search bar (which shouldn't be the case). It's also the only mainspace page that shows up in these searches that isn't about c++ templates, which means that the problem's probably local to this page.

Another peculiarity is that these issues don't occur when I preview a no-diff edit of this page. This leads me to believe they might be fixable by performing such a no-diff edit, but that points to inconsistency in the way edits are processed, which would be very annoying. I'll try it anyway to see if it works, but I wanted to document the issue first.

(PS: we should add the {{quote frame}} and {{quote}} templates from Wikipedia, which are used for quoting a passage from the article whose talk page you're on and for quoting a person respectively. They can be found here and here, respectively. And we should have some way of searching for pages in another namespace; I can't search for pages containing "quote" in the Template: namespace through the search box.) AdamantConlanger (talk) 01:38, 18 June 2023 (PDT)

Update: Yup, the no-diff edit worked. I don't know how or why; but the issues are fixed. My no-diff revision isn't listed in the page history (even though I supplied an edit summary!), so I can't even access the broken page state anymore. The previous revision (i.e. the one from 19 May 2023) doesn't have those issues anymore instead of the fixed version being a new revision. But that means that the page was somehow broken without it showing up in the edit history. So vandalism could have lingering effects that aren't detectible from the pages that were vandalized. Someone who knows more about the way wiki handles edits should either look into this, or conclude that I've interpreted the situation incorrectly and mention that I'm wrong below. AdamantConlanger (talk) 02:06, 18 June 2023 (PDT)
It should be noted that most wiki pages are cached and the cache update period varies ~ usually 2-3 days. This delay period is definitely inherent in wiki template pages, unlike usual pages.
Sometimes it's funny to see that some edits, e.g., wiki-template documentation pages, while displaying correctly in edit mode, don't be updated in read mode for a couple of days.
So most likely, the glitches that you've observed are due to rust contamination and following delays in page-caches updates.
Thanks for reporting.) --Space Mission (talk) 07:22, 18 June 2023 (PDT)