python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Make C++ preprocessor add a character at the end of each line
I am implementing some compile-time check which should base on a CSV file and I am trying to load it a bit hacky way:
constexpr std::variant<int, const char*> test[] = {
#include "data.csv&...
knopers8
Votes: 0
Answers: 1
static_assert doesn't fire on MSVC
The below example code fires the "testing" assert with gcc and clang, but not MSVC. Only when the line marked comment this out is commented out does it fire. With GCC and clang it fires both...
Diederick C. Niehorster
Votes: 0
Answers: 0
template instantiation via a function parameter in C++?
I have a class template which takes a compile time string as the template parameter. For example
template<size_t Size>
struct Buffer
{
char buffer[Size] = {0};
consteval Buffer(const ch...
Null
Votes: 0
Answers: 1
Nim - Norm - How to get related fieldnames at compile time
Heyho,
I am using norm, an orm in the nim programming language.
I have 2 different models such as this:
import std/options
import norm
type
A {.tableName: "Surprise".} = ref object of M...

Philipp Doerner
Votes: 0
Answers: 1