Skip to content
#

cpp14

cpp logo

C++ is a popular and widely used mid-level language. It was designed as an extension of the C language.

Here are 1,356 public repositories matching this topic...

galkinvv
galkinvv commented Jan 21, 2020

The doc is great! Hoewever some areas are still missing.
C++11 intoduced raw string literals: https://en.cppreference.com/w/cpp/language/string_literal

It is useful in many different areas, like strings with quotes, multiline strings and for example windows paths without escaping backslashes:

const char win_path[] = R"(c:\some\unescaped\path)";

The same cppreference link als

danpat
danpat commented Dec 14, 2018

It's possible to instantiate an OSRM object in Javascript like this:

    const osrmInstance = new OSRM({
        algorithm: 'CH',
        dataset_name: 'foo',
        mmap_memory: true
    });

This should throw an error - setting mmap_memory should require supplying a path, and this is incompatible with using dataset_name, which triggers using shared memory.

These opti

bbfgelman1
bbfgelman1 commented Oct 10, 2018

I have encountered a possible use after free bug in the libnghttp2 c library after performing a particular sequence of operations with NGHTTP2_OPT_NO_CLOSED_STREAMS set.

The sequence is:

  • nghttp2_session_mem_recv with received data. It calls, among other things
  • nghttp2_session_on_data_received, which then calls
  • session_call_on_frame_received, which calls my `on_frame_recv_call
eyalroz
eyalroz commented Feb 22, 2020

doctest currently has an option not to print the version, so that printVersion() starts with:

         void printVersion() {
             if(opt.no_version == false)

I suggest that the same option be added for the intro text, i.e.

        void printIntro() {
+            if(opt.no_intro == false) {
             printVersion();
             // etc. etc.
+            }
viboes
viboes commented Sep 28, 2019

As for Display the special operations generated by the compiler #224 discussion, the documentation will improve if we had a section describing the transformation of each featre and his limitations.

In particular for the special operation, to explain that only the operations that are really generated would appear in the transformation. This is due to the fact that the tool s based on the AST.

niklasnolte
niklasnolte commented Jan 18, 2019

the correct result of the example in Vc::iif should be [2,1,1,5] (if i understood it correctly)
and I am not sure whether the code example in Vc::simd_for_each is correct, therefore I did not make a PR.

void scale(std::vector<double> &data, double factor) {
  Vc::simd_for_each(data.begin(), data.end(), [&](auto v) {
     v *= factor;
  });
}

If one gets v by value, it chang

tsequitur
tsequitur commented Dec 8, 2017

hi, i am trying to install rpclib, but got a bit lost.

the version i am trying to install is the git cloned version from the master branch.
i follow the guide and execute the build commands. the documentation says

And that's it. If all goes well, your build output will be in the output directory.

i can find no direc

mbeutel
mbeutel commented Sep 28, 2019

The Guidelines Support Library is sort-of documented in the C++ Core Guidelines, so one could argue that GSL implementations such as gsl-lite only need to document their configuration switches.

However, gsl-lite offers a variety of additional features which are currently undocumented (e.g. the gsl_HAVE_* family of macro

nholthaus
nholthaus commented May 11, 2018

We have user-definable variadic dimensions now, but we need to develop some case studies we can document to guide users on how to take advantage of that. We probably also want some macros to simplify including new dimensions and making sure traits and things are auto-generated when a new dimension is defined.

If anyone comes up with something cool, post it here or in a PR and I'll include it in

30-seconds-of-cpp

Created by Bjarne Stroustrup

Released October 1985

Website
isocpp.org
Wikipedia
Wikipedia
You can’t perform that action at this time.