Site Tools


pub:software:development:vscodium:cpp:get_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pub:software:development:vscodium:cpp:get_started [2026/08/26 07:49] – [Get started with VSCodium C++] adminpub:software:development:vscodium:cpp:get_started [2026/09/01 03:39] (current) – [Using the format library] admin
Line 332: Line 332:
 #include <fmt/format.h> // or more general <fmt/core.h> #include <fmt/format.h> // or more general <fmt/core.h>
  
-using namespace std; +using std::cout; 
-using namespace fmt; // Note that fmt::format or fmt::print will not work with V10 anymore as it did with v9+using std::endl
 +using fmt::format; // Note either use "using namespace fmt", or better, limit scope to format only: "using fmt::format
 +using fmt::print;
  
 int main(int argc, char** argv) int main(int argc, char** argv)
Line 356: Line 358:
 #include <iostream> #include <iostream>
  
-using namespace fmt; // Note that fmt::format or fmt::print will not work with V10 anymore as it did with v9+using fmt::print; // Note either use "using namespace fmt", or specifically "using fmt::format"
  
 int main() int main()
pub/software/development/vscodium/cpp/get_started.1787755779.txt.gz · Last modified: by admin