C ++ regex, secuencia de escape desconocida '\.' advertencia

La primera vez intenté usar expresiones regulares en C ++, y estoy un poco confundido acerca de las secuencias de escape. Simplemente estoy tratando de hacer coincidir un punto al comienzo de una cadena. Para eso estoy usando la expresión: "^ \\\.", Que funciona, pero mi compilador (g ++) genera una advertencia:

warning: unknown escape sequence '\.'
        regex self_regex("^\\\.");
                             ^~

Si estoy usando, por ejemplo, "^ \\.", No genera una advertencia, pero esa expresión regular no coincide con lo que pretendo hacer.

Tampoco entiendo por qué tengo que usar tres barras invertidas, si dos no son suficientes, en "\". la primera barra diagonal inversa escapa a la segunda, por lo que realmente busco., pero no funciona. ¿Alguien puede aclarar esto por mí?

Código:

#include <iostream>
#include <dirent.h>
#include <regex>

using namespace std;

int main(void){
    DIR *dir;
    string path = "/Users/-----------/Documents/Bibliothek/MachineLearning/DeepLearning/ConvolutionalNeuralNetworks/CS231n 2016/Assignments/assignment3/assignment3/cs231n";
    regex self_regex("^\\\.+");
    struct dirent *ent;
    dir = opendir(path.c_str());
    if ((dir = opendir(path.c_str())) != NULL){
        while ((ent = readdir(dir)) != NULL){
            if (regex_search(string(ent->d_name),self_regex)){
                cout << "matches regex" << ent->d_name << endl;
            }
            else{
                cout << "does not match regex " << ent->d_name << endl;
            }
        }
        closedir(dir);
    }
    return 0;
}

Salida:

matches regex.
matches regex..
matches regex.DS_Store
matches regex.gitignore
does not match regex __init__.py
does not match regex __init__.pyc
does not match regex build
does not match regex captioning_solver.py
does not match regex captioning_solver.pyc
does not match regex classifiers
does not match regex coco_utils.py
does not match regex coco_utils.pyc
does not match regex data_utils.py
does not match regex datasets
does not match regex fast_layers.py
does not match regex fast_layers.pyc
does not match regex gradient_check.py
does not match regex gradient_check.pyc
does not match regex im2col.py
does not match regex im2col.pyc
does not match regex im2col_cython.c
does not match regex im2col_cython.pyx
does not match regex im2col_cython.so
does not match regex image_utils.py
does not match regex image_utils.pyc
does not match regex layer_utils.py
does not match regex layers.py
does not match regex layers.pyc
does not match regex optim.py
does not match regex optim.pyc
does not match regex rnn_layers.py
does not match regex rnn_layers.pyc
does not match regex setup.py