Category "stdstring"

How to mix formatting in a single call using libfmt

I want to print the time center aligned. But I do not know how to mix arguments with fmt. std::cout << fmt::format("|{0: ^80}|\n", ""); std::cout <<

Generating compile time functions string for formatting strings with libfmt

I want to create a nice table in stdout. The table has a lot of headers that are mainly compiletime strings. For example: std::cout << fmt::format("|{0:-^

Save integers from string to vector

I need to save integers from string to vector. Definition of number: each of strings substrings which consists entirely of digits, with a space before the first

The procedure entry point _ZNSt7_cxx1112basic_stringlcSt11char_traitslcESalcEEC1Ev could not be located in the dynamic link library

I am having immense difficulty trying to use std::string. The program compiles absolutely fine, but when I run the program, I receive this error: error I have

Is it possible to use std::string in a constexpr?

Using C++11, Ubuntu 14.04, GCC default toolchain. This code fails: constexpr std::string constString = "constString"; error: the type ‘const string