You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
1This is by far the BEST answer to the eternal questions about how/why/if/when to use some tricks to emulate an static constructor in C++.jose.angel.jimenez– jose.angel.jimenez2014-09-03 07:29:51 +00:00Commented Sep 3, 2014 at 7:29
-
@bearvarine As for your recent question on Meta-SO. Yes, this is one of the questions, that won't survive at SO nowadays. I'm close voting many questions of this form everyday Because I think their value for future researchers is minor (or there is a duplicate already), and the OP has been missing to research the site before asking their own question. The moderation tone has changed, especially for questions kind of this caliber, since the answers are already ubiquitously available meanwhile.πάντα ῥεῖ– πάντα ῥεῖ2015-03-31 18:43:08 +00:00Commented Mar 31, 2015 at 18:43
-
This leads to the following Error in VS2017: Severity Code Description Project File Line Suppression State LNK2001 unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > Foo::my_text_str" (?my_text_str@Foo@@2V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A)Harsh Kumar Narula– Harsh Kumar Narula2017-07-29 12:26:11 +00:00Commented Jul 29, 2017 at 12:26
-
I have just hit this problem. And your solution is not always possible in the real world projects where you did not write the code from scratch and all by yourself.Alex D– Alex D2018-09-28 22:32:59 +00:00Commented Sep 28, 2018 at 22:32
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-cpp