digraphs Language Option (C++)

Syntax: Default:
lang(digraphs[, yes])
lang(digraphs, no)
lang(digraphs[, yes])

This option controls whether standard digraphs and keyword operators are allowed in your C++ source.

By default, all standard forms are supported. The digraph, "<:", which represents "[" can result in syntax errors when the first characters of a template argument are interpreted as the digraph. The following code shows how an unexpected error can occur:

template <int T> class C { };
const int i =1;

void f( ) {
   int i;
   C<::i> j    // error: this line is read as "C[:i. j"
   C< ::i > k  // no error due to the space beween "<" and ":"
}

If your code uses old-style digraphs, set lang(oldDigraphs) also to yes.

For C, whether digraphs are recognized is controlled by lang(cDigraphs).



Incremental C++ Build
Configuration Files


Set Build Options
Build


Build Options for Compliance With the C++ Standard
Build Options for Compatibility with Old C++ Compilers
Language Options for C++
Build Options