Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Re:As always with C++, the truth is more nuanced (Score 1) 262

However, it also means that if you have any weak_ptrs pointing at the end of that shared_ptr, the object itself won't go away until all the weak_ptrs do too (because the control structure won't go away until they do, and they're contiguously allocated).

Shouldn't you lock the weak_ptr before using it?

Submission + - UK government releases rules to get self-driving cars onto public roads (arstechnica.co.uk)

rippeltippel writes: Ars Technica UK reports that the UK government has released the rules to get self-driving cars onto public roads. As the article reports, drivers will be required to have "a high level of knowledge about the technology used" (i.e. they'll be techies) and — most notably — will have to mimic the act of driving, to avoid confusing other drivers. The original PDF can be viewed here.

Comment Re:What else do you need? (Score 1) 296

You said that it should be cross-platform, which rules out C#, IMHO

Also consider that, if you go for C++, you'll have to compile it for each platform.

Maybe you can have a C++ library that deals with memory and do the rest in a language you're more familiar with? e.g. using Boost.Python to interface with... well, Python.

There are similar solutions for Java and other high-level languages (in general I tend to avoid mixing languages but sometimes it's a necessary evil).

Slashdot Top Deals

Loan-department manager: "There isn't any fine print. At these interest rates, we don't need it."

Working...